Skip to content

Commit 0ca4ed0

Browse files
authored
Add log when download completes with file size (#15224)
Signed-off-by: Gaurav Bafna <[email protected]>
1 parent b830d68 commit 0ca4ed0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/opensearch/index/store/RemoteStoreFileDownloader.java

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ private void copyOneFile(
149149
try {
150150
cancellableThreads.executeIO(() -> {
151151
destination.copyFrom(source, file, file, IOContext.DEFAULT);
152+
logger.trace("Downloaded file {} of size {}", file, destination.fileLength(file));
152153
onFileCompletion.run();
153154
if (secondDestination != null) {
154155
secondDestination.copyFrom(destination, file, file, IOContext.DEFAULT);

0 commit comments

Comments
 (0)