OpenSearch/qa
Areek Zillur 4f773e2dbb Replicate write failures (#23314)
* Replicate write failures

Currently, when a primary write operation fails after generating
a sequence number, the failure is not communicated to the replicas.
Ideally, every operation which generates a sequence number on primary
should be recorded in all replicas.

In this change, a sequence number is associated with write operation
failure. When a failure with an assinged seqence number arrives at a
replica, the failure cause and sequence number is recorded in the translog
and the sequence number is marked as completed via executing `Engine.noOp`
on the replica engine.

* use zlong to serialize seq_no

* Incorporate feedback

* track write failures in translog as a noop in primary

* Add tests for replicating write failures.

Test that document failure (w/ seq no generated) are recorded
as no-op in the translog for primary and replica shards

* Update to master

* update shouldExecuteOnReplica comment

* rename indexshard noop to markSeqNoAsNoOp

* remove redundant conditional

* Consolidate possible replica action for bulk item request
depanding on it's primary execution

* remove bulk shard result abstraction

* fix failure handling logic for bwc

* add more tests

* minor fix

* cleanup

* incorporate feedback

* incorporate feedback

* add assert to remove handling noop primary response when 5.0 nodes are not supported
2017-04-19 01:23:54 -04:00
..
backwards-5.0 Replicate write failures (#23314) 2017-04-19 01:23:54 -04:00
evil-tests Remove awaits fix from evil JNA native tests 2017-04-13 06:53:02 -04:00
multi-cluster-search Tests: Clean up rest test file handling (#21392) 2017-04-18 15:07:08 -07:00
no-bootstrap-tests Fix permissions handling on Windows spawner test 2017-04-07 06:25:24 -04:00
rolling-upgrade Tests: Clean up rest test file handling (#21392) 2017-04-18 15:07:08 -07:00
smoke-test-client Tests: Move cluster dependencies from runner to cluster (#24142) 2017-04-17 16:02:46 -07:00
smoke-test-http Rename random ASCII helper methods 2017-04-04 11:04:18 -04:00
smoke-test-ingest-disabled Tests: Clean up rest test file handling (#21392) 2017-04-18 15:07:08 -07:00
smoke-test-ingest-with-all-dependencies Tests: Clean up rest test file handling (#21392) 2017-04-18 15:07:08 -07:00
smoke-test-multinode Tests: Clean up rest test file handling (#21392) 2017-04-18 15:07:08 -07:00
smoke-test-plugins Tests: Clean up rest test file handling (#21392) 2017-04-18 15:07:08 -07:00
smoke-test-reindex-with-painless Tests: Clean up rest test file handling (#21392) 2017-04-18 15:07:08 -07:00
smoke-test-tribe-node Tests: Clean up rest test file handling (#21392) 2017-04-18 15:07:08 -07:00
vagrant Add package test to catch leaking default.data.path setting (#24029) 2017-04-17 16:36:32 -04:00