Apache Lucene open-source search software
adding more info to assert
Simon Willnauere4873244eba3
diff --git a/lucene/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java b/lucene/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.javaindex 3f1c46cc452..af299ca9e26 100644--- a/lucene/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java+++ b/lucene/src/java/org/apache/lucene/index/DocumentsWriterFlushControl.java@@ -99,7 +99,7 @@ public final class DocumentsWriterFlushControl {final long ram = flushBytes + activeBytes;// take peakDelta into account - worst case is that all flushing, pending and blocked DWPT had maxMem and the last doc had the peakDeltafinal long expected = (long)(2 * (maxConfiguredRamBuffer * 1024 * 1024)) + ((numPending + numFlushingDWPT() + numBlockedFlushes()) * peakDelta);- assert ram <= expected : "ram was " + ram + " expected: " + expected + " flush mem: " + flushBytes + " active: " + activeBytes ;+ assert ram <= expected : "ram was " + ram + " expected: " + expected + " flush mem: " + flushBytes + " active: " + activeBytes + " pending: " + numPending + " flushing: " + numFlushingDWPT() + " blocked: " + numBlockedFlushes() + " peakDelta: " + peakDelta ;}return true;}