From b9210310304fb97e6e4f093a5d4daf6d5b1750ea Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Sat, 17 May 2014 19:49:08 +0000 Subject: [PATCH] during flush, log to infoStream size of all DWPTs considered for flush git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1595532 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java b/lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java index 68d5c066098..2bc7b201291 100644 --- a/lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java +++ b/lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java @@ -119,6 +119,9 @@ abstract class FlushPolicy implements Cloneable { if (!next.flushPending) { final long nextRam = next.bytesUsed; if (nextRam > 0 && next.dwpt.getNumDocsInRAM() > 0) { + if (infoStream.isEnabled("FP")) { + infoStream.message("FP", "thread state has " + nextRam + " bytes; docInRAM=" + next.dwpt.getNumDocsInRAM()); + } count++; if (nextRam > maxRamSoFar) { maxRamSoFar = nextRam;