Skip to content

Commit a90ab97

Browse files
Flaky test: Add condition to ensure data correctness on primary promotion (#8431) (#8495)
(cherry picked from commit bcaf494) Signed-off-by: Ankit Kala <[email protected]> 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 3cf5cee commit a90ab97

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

+1
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ public void testDropPrimaryDuringReplication() throws Exception {
732732
// start another replica.
733733
dataNodes.add(internalCluster().startDataOnlyNode());
734734
ensureGreen(INDEX_NAME);
735+
waitForSearchableDocs(initialDocCount, dataNodes);
735736

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

0 commit comments

Comments
 (0)