LUCENE-9683: fix incorrect logic for measuring stall time information. (#2225)

This commit is contained in:
Dawid Weiss 2021-01-20 19:05:22 +01:00 committed by GitHub
parent 89456686ed
commit 4da8f08c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -598,10 +598,12 @@ public class ConcurrentMergeScheduler extends MergeScheduler {
return false;
}
if (verbose() && startStallTime == 0) {
message(" too many merges; stalling...");
if (startStallTime == 0) {
startStallTime = System.currentTimeMillis();
if (verbose()) {
message(" too many merges; stalling...");
}
}
startStallTime = System.currentTimeMillis();
doStall();
}