Skip to content

Commit

Permalink
[Segment Replication] Fix flaky testReplicaHasDiffFilesThanPrimary test
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Singh <[email protected]>
  • Loading branch information
dreamer-89 committed Apr 4, 2023
1 parent 4859e15 commit 5ab7285
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ public void testReplicaHasDiffFilesThanPrimary() throws Exception {

final SegmentInfos segmentInfos = SegmentInfos.readLatestCommit(replicaShard.store().directory());
replicaShard.finalizeReplication(segmentInfos);
ensureYellow(INDEX_NAME);

final int docCount = scaledRandomIntBetween(10, 200);
for (int i = 0; i < docCount; i++) {
Expand Down

0 comments on commit 5ab7285

Please sign in to comment.