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
This commit is contained in:
Michael McCandless 2014-05-17 19:49:08 +00:00
parent 7aeac4f07b
commit b921031030
1 changed files with 3 additions and 0 deletions

View File

@ -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;