mirror of https://github.com/apache/lucene.git
LUCENE-9304: Remove assertion in DocumentsWriterFlushControl (#228)
This is assertion becomes obvious after LUCENE-9304.
This commit is contained in:
parent
e8663b30b8
commit
03b1db91f9
|
@ -552,16 +552,6 @@ final class DocumentsWriterFlushControl implements Accountable, Closeable {
|
|||
for (final DocumentsWriterPerThread next :
|
||||
perThreadPool.filterAndLock(dwpt -> dwpt.deleteQueue == flushingQueue)) {
|
||||
try {
|
||||
assert next.deleteQueue == flushingQueue || next.deleteQueue == documentsWriter.deleteQueue
|
||||
: " flushingQueue: "
|
||||
+ flushingQueue
|
||||
+ " currentqueue: "
|
||||
+ documentsWriter.deleteQueue
|
||||
+ " perThread queue: "
|
||||
+ next.deleteQueue
|
||||
+ " numDocsInRam: "
|
||||
+ next.getNumDocsInRAM();
|
||||
|
||||
if (next.getNumDocsInRAM() > 0) {
|
||||
final DocumentsWriterPerThread flushingDWPT;
|
||||
synchronized (this) {
|
||||
|
|
Loading…
Reference in New Issue