Skip to content

Commit

Permalink
Do not trigger storeDirectory.sync in segment download flow from remo…
Browse files Browse the repository at this point in the history
…te store (opensearch-project#8739) (opensearch-project#8743)

Do not trigger storeDirectory.sync in segment download flow from remote store

Signed-off-by: Sachin Kale <kalsac@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] committed Jul 18, 2023
1 parent 2a73287 commit 9762871
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4779,7 +4779,6 @@ private String copySegmentFiles(
long checksum = Long.parseLong(uploadedSegments.get(file).getChecksum());
if (overrideLocal || localDirectoryContains(storeDirectory, file, checksum) == false) {
storeDirectory.copyFrom(sourceRemoteDirectory, file, file, IOContext.DEFAULT);
storeDirectory.sync(Collections.singleton(file));
downloadedSegments.add(file);
} else {
skippedSegments.add(file);
Expand Down

0 comments on commit 9762871

Please sign in to comment.