Skip to content

Commit dca19d4

Browse files
Fix flaky test. (#8441) (#8454)
(cherry picked from commit d8cc450) Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c617696 commit dca19d4

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
@@ -431,6 +431,7 @@ public void testNodeDropWithOngoingReplication() throws Exception {
431431
refresh(INDEX_NAME);
432432
blockFileCopy.countDown();
433433
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(primaryNode));
434+
ensureYellow(INDEX_NAME);
434435
assertBusy(() -> { assertDocCounts(docCount, replicaNode); });
435436
state = client().admin().cluster().prepareState().execute().actionGet().getState();
436437
// replica now promoted as primary should have same allocation id

0 commit comments

Comments
 (0)