Skip to content

Commit

Permalink
Not overriding local segment files
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Bafna <gbbafna@amazon.com>
  • Loading branch information
gbbafna committed Jul 31, 2023
1 parent 7ebc3a8 commit 52e3655
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -635,5 +635,4 @@ public void testStaleCommitDeletionWithoutInvokeFlush() throws Exception {
// We also allow (numberOfIterations + 1) as index creation also triggers refresh.
MatcherAssert.assertThat(actualFileCount, is(oneOf(numberOfIterations, numberOfIterations + 1)));
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void testReplicaSyncingFromRemoteStore() throws IOException {
indexDoc(primaryShard, "_doc", "3");
indexDoc(primaryShard, "_doc", "4");
primaryShard.refresh("test");
replicaShard.syncSegmentsFromRemoteSegmentStore(true, true, false);
replicaShard.syncSegmentsFromRemoteSegmentStore(false, true, false);
assertDocs(replicaShard, "1", "2", "3", "4");

closeShards(primaryShard, replicaShard);
Expand Down

0 comments on commit 52e3655

Please sign in to comment.