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)

Signed-off-by: Sachin Kale <kalsac@amazon.com>
Co-authored-by: Sachin Kale <kalsac@amazon.com>
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
  • Loading branch information
2 people authored and kaushalmahi12 committed Sep 12, 2023
1 parent 386a69a commit d7707b1
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4772,7 +4772,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 d7707b1

Please sign in to comment.