File tree 1 file changed +5
-0
lines changed
server/src/internalClusterTest/java/org/elasticsearch/snapshots
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,11 @@ public void testMasterFailOverWithQueuedDeletes() throws Exception {
476
476
// rarely the master node fails over twice when shutting down the initial master and fails the transport listener
477
477
assertThat (rex .repository (), is ("_all" ));
478
478
assertThat (rex .getMessage (), endsWith ("Failed to update cluster state during repository operation" ));
479
+ } catch (SnapshotMissingException sme ) {
480
+ // very rarely a master node fail-over happens at such a time that the client on the data-node sees a disconnect exception
481
+ // after the master has already started the delete, leading to the delete retry to run into a situation where the
482
+ // snapshot has already been deleted potentially
483
+ assertThat (sme .getSnapshotName (), is (firstSnapshot ));
479
484
}
480
485
}
481
486
expectThrows (SnapshotException .class , snapshotThreeFuture ::actionGet );
You can’t perform that action at this time.
0 commit comments