From 03b1db91f9e5b11816274efd0da8503db27ccce0 Mon Sep 17 00:00:00 2001 From: Shintaro Murakami Date: Wed, 28 Jul 2021 23:05:00 +0900 Subject: [PATCH] LUCENE-9304: Remove assertion in DocumentsWriterFlushControl (#228) This is assertion becomes obvious after LUCENE-9304. --- .../lucene/index/DocumentsWriterFlushControl.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java b/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java index 20916b5dd12..0dd39c32180 100644 --- a/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java +++ b/lucene/core/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java @@ -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) {