Skip to content

Commit d8cc450

Browse files
Fix flaky test. (#8441)
Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>
1 parent 9e4e54d commit d8cc450

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ public void testNodeDropWithOngoingReplication() throws Exception {
435435
refresh(INDEX_NAME);
436436
blockFileCopy.countDown();
437437
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(primaryNode));
438+
ensureYellow(INDEX_NAME);
438439
assertBusy(() -> { assertDocCounts(docCount, replicaNode); });
439440
state = client().admin().cluster().prepareState().execute().actionGet().getState();
440441
// replica now promoted as primary should have same allocation id

0 commit comments

Comments
 (0)