From e076e665ddabcd377f4a5db6e5c4c913d3525b6d Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:36:13 +0530 Subject: [PATCH] Add log when download completes with file size (#15224) (#15348) (cherry picked from commit 0ca4ed0b62ecc699547a8fbedd150f28f406b03a) Signed-off-by: Gaurav Bafna Signed-off-by: github-actions[bot] Co-authored-by: github-actions[bot] --- .../org/opensearch/index/store/RemoteStoreFileDownloader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/java/org/opensearch/index/store/RemoteStoreFileDownloader.java b/server/src/main/java/org/opensearch/index/store/RemoteStoreFileDownloader.java index 134994c0ae32c..ad42b6d677b41 100644 --- a/server/src/main/java/org/opensearch/index/store/RemoteStoreFileDownloader.java +++ b/server/src/main/java/org/opensearch/index/store/RemoteStoreFileDownloader.java @@ -149,6 +149,7 @@ private void copyOneFile( try { cancellableThreads.executeIO(() -> { destination.copyFrom(source, file, file, IOContext.DEFAULT); + logger.trace("Downloaded file {} of size {}", file, destination.fileLength(file)); onFileCompletion.run(); if (secondDestination != null) { secondDestination.copyFrom(destination, file, file, IOContext.DEFAULT);