Skip to content

Commit

Permalink
Fix flaky test SegmentReplicationIT.testReplicaAlreadyAtCheckpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Sandeep Kumawat <[email protected]>
  • Loading branch information
Sandeep Kumawat committed Jan 31, 2025
1 parent e7178f2 commit eed1d1b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1892,6 +1892,7 @@ public void testReplicaAlreadyAtCheckpoint() throws Exception {
// index a doc.
client().prepareIndex(INDEX_NAME).setId("1").setSource("foo", randomInt()).get();
refresh(INDEX_NAME);
waitForSearchableDocs(1, primaryNode, replicaNode, replicaNode2);

internalCluster().stopRandomNode(InternalTestCluster.nameFilter(primaryNode));
ensureYellowAndNoInitializingShards(INDEX_NAME);
Expand Down

0 comments on commit eed1d1b

Please sign in to comment.