mirror of https://github.com/apache/lucene.git
LUCENE-8090: Prevent stale threadstate reads in DocumentsWriterFlushControl
This commit is contained in:
parent
952f4c4e59
commit
9ad84fea80
|
@ -716,7 +716,7 @@ final class DocumentsWriterFlushControl implements Accountable {
|
|||
return infoStream;
|
||||
}
|
||||
|
||||
ThreadState findLargestNonPendingWriter() {
|
||||
synchronized ThreadState findLargestNonPendingWriter() {
|
||||
ThreadState maxRamUsingThreadState = null;
|
||||
long maxRamSoFar = 0;
|
||||
Iterator<ThreadState> activePerThreadsIterator = allActiveThreadStates();
|
||||
|
|
Loading…
Reference in New Issue