LUCENE-9304: Remove assertion in DocumentsWriterFlushControl (#228)

This is assertion becomes obvious after LUCENE-9304.
This commit is contained in:
Shintaro Murakami 2021-07-28 23:05:00 +09:00 committed by GitHub
parent e8663b30b8
commit 03b1db91f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -552,16 +552,6 @@ final class DocumentsWriterFlushControl implements Accountable, Closeable {
for (final DocumentsWriterPerThread next : for (final DocumentsWriterPerThread next :
perThreadPool.filterAndLock(dwpt -> dwpt.deleteQueue == flushingQueue)) { perThreadPool.filterAndLock(dwpt -> dwpt.deleteQueue == flushingQueue)) {
try { 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) { if (next.getNumDocsInRAM() > 0) {
final DocumentsWriterPerThread flushingDWPT; final DocumentsWriterPerThread flushingDWPT;
synchronized (this) { synchronized (this) {