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 (#8431)

Signed-off-by: Ankit Kala <ankikala@amazon.com>
  • Loading branch information
ankitkala committed Jul 6, 2023
1 parent 5c0e3c9 commit bcaf494
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 bcaf494

Please sign in to comment.