Add Trace Logging to File Restore (#62755) (#62761)

Requested by the performance team and generally potentially useful
to log each file at `TRACE` like we do for snapshot create.
This commit is contained in:
Armin Braun 2020-09-22 14:44:40 +02:00 committed by GitHub
parent 0be89bcd7f
commit 0d5250c99b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2104,6 +2104,7 @@ public abstract class BlobStoreRepository extends AbstractLifecycleComponent imp
private void restoreFile(BlobStoreIndexShardSnapshot.FileInfo fileInfo, Store store) throws IOException {
ensureNotClosing(store);
logger.trace(() -> new ParameterizedMessage("[{}] restoring [{}] to [{}]", metadata.name(), fileInfo, store));
boolean success = false;
try (IndexOutput indexOutput =
store.createVerifyingOutput(fileInfo.physicalName(), fileInfo.metadata(), IOContext.DEFAULT)) {