Skip to content

Commit

Permalink
Fix flaky test. (opensearch-project#8441)
Browse files Browse the repository at this point in the history
Signed-off-by: Rishikesh1159 <[email protected]>
  • Loading branch information
Rishikesh1159 authored and baba-devv committed Jul 29, 2023
1 parent 2723bbe commit 49bfd2b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ public void testNodeDropWithOngoingReplication() throws Exception {
refresh(INDEX_NAME);
blockFileCopy.countDown();
internalCluster().stopRandomNode(InternalTestCluster.nameFilter(primaryNode));
ensureYellow(INDEX_NAME);
assertBusy(() -> { assertDocCounts(docCount, replicaNode); });
state = client().admin().cluster().prepareState().execute().actionGet().getState();
// replica now promoted as primary should have same allocation id
Expand Down

0 comments on commit 49bfd2b

Please sign in to comment.