From 25b732e3927f956a354f5d472328e9e706c3b428 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Tue, 26 Jul 2011 19:01:10 +0000 Subject: [PATCH] add infoStream output to match 3.x git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1151212 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/src/java/org/apache/lucene/index/DocumentsWriter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java b/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java index bf618f7453b..21b5b417ed1 100644 --- a/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java +++ b/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java @@ -455,6 +455,9 @@ final class DocumentsWriter { final double ramBufferSizeMB = indexWriter.getConfig().getRAMBufferSizeMB(); if (ramBufferSizeMB != IndexWriterConfig.DISABLE_AUTO_FLUSH && flushControl.getDeleteBytesUsed() > (1024*1024*ramBufferSizeMB/2)) { + if (infoStream != null) { + message("force apply deletes bytesUsed=" + flushControl.getDeleteBytesUsed() + " vs ramBuffer=" + (1024*1024*ramBufferSizeMB)); + } applyAllDeletes(deleteQueue); }