Skip to content

Commit

Permalink
Flaky test: Add condition to ensure data correctness on primary promo…
Browse files Browse the repository at this point in the history
…tion (opensearch-project#8431)

Signed-off-by: Ankit Kala <[email protected]>
  • Loading branch information
ankitkala authored and raghuvanshraj committed Jul 12, 2023
1 parent f2d87f9 commit b4cf475
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ public void testDropPrimaryDuringReplication() throws Exception {
// start another replica.
dataNodes.add(internalCluster().startDataOnlyNode());
ensureGreen(INDEX_NAME);
waitForSearchableDocs(initialDocCount, dataNodes);

// index another doc and refresh - without this the new replica won't catch up.
String docId = String.valueOf(initialDocCount + 1);
Expand Down

0 comments on commit b4cf475

Please sign in to comment.