mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
fix possible concurrency bug in IMC when indexing threads are faster in writing bytes than the status checker is in checking all shards
This commit is contained in:
parent
cde5bb88b1
commit
ce32b959fd
@ -256,6 +256,8 @@ public class IndexingMemoryController extends AbstractComponent implements Index
|
|||||||
} finally {
|
} finally {
|
||||||
runLock.unlock();
|
runLock.unlock();
|
||||||
}
|
}
|
||||||
|
// Could be while we were checking, more bytes arrived:
|
||||||
|
totalBytes = bytesWrittenSinceCheck.addAndGet(bytes);
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user