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

Signed-off-by: Ankit Kala <[email protected]>
  • Loading branch information
ankitkala committed Jul 4, 2023
1 parent f8f6ea5 commit 08393c5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,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 08393c5

Please sign in to comment.