Skip to content

Commit 7d23476

Browse files
committed
More logs
1 parent 320747b commit 7d23476

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

server/src/main/java/org/elasticsearch/repositories/blobstore/MetadataVerifier.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ class MetadataVerifier implements Releasable {
9090

9191
this.threadPoolPermits = new Semaphore(Math.max(1, verifyRequest.getThreadpoolConcurrency()));
9292
this.snapshotProgressLogger = new ProgressLogger("snapshots", repositoryData.getSnapshotIds().size(), 100);
93-
this.indexProgressLogger = new ProgressLogger("indices", repositoryData.getIndices().size(), 100);
94-
this.indexSnapshotProgressLogger = new ProgressLogger("index snapshots", repositoryData.getIndexSnapshotCount(), 10000);
93+
this.indexProgressLogger = new ProgressLogger("indices", repositoryData.getIndices().size(), 20);
94+
this.indexSnapshotProgressLogger = new ProgressLogger("index snapshots", repositoryData.getIndexSnapshotCount(), 1000);
9595
}
9696

9797
@Override
@@ -646,10 +646,9 @@ long getExpectedMax() {
646646

647647
void maybeLogProgress() {
648648
final var count = currentCount.incrementAndGet();
649-
if (count % logFrequency == 0) {
649+
if (count == expectedMax || count % logFrequency == 0) {
650650
logger.info("[{}] processed [{}] of [{}] {}", repositoryName, count, expectedMax, type);
651651
}
652652
}
653-
654653
}
655654
}

0 commit comments

Comments
 (0)