OpenSearch/core
Ali Beyad 3cb307462d Consolidates the logic for cleaning up snapshots on master election (#24894)
In #24605, logic was implemented to ensure that completed snapshots were
properly removed from the cluster state upon a change in master nodes.
This commit removes redundant logic that also attempted to clean up
completed snapshots from the cluster state on master election, but only
covered a limited case that was remedied in #24605.

This commit also adds a test to ensure cleaning up of completed
snapshots at the right moment in time when a master election happens
before finalizing a snapshot, as well as adds a check to handle the case
where the old master and new master could attempt to finalize the
snapshot and write the same blob to the repository simultaneously.
2017-06-02 14:51:13 -04:00
..
licenses Upgrade to lucene-7.0.0-snapshot-a0aef2f 2017-05-19 10:20:55 -05:00
src Consolidates the logic for cleaning up snapshots on master election (#24894) 2017-06-02 14:51:13 -04:00
build.gradle [Test] Remove unused test resources in core (#25011) 2017-06-02 09:08:51 +02:00