You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2014/05/17 21:49:09 UTC
svn commit: r1595532 -
/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java
Author: mikemccand
Date: Sat May 17 19:49:08 2014
New Revision: 1595532
URL: http://svn.apache.org/r1595532
Log:
during flush, log to infoStream size of all DWPTs considered for flush
Modified:
lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java
Modified: lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java?rev=1595532&r1=1595531&r2=1595532&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java (original)
+++ lucene/dev/trunk/lucene/core/src/java/org/apache/lucene/index/FlushPolicy.java Sat May 17 19:49:08 2014
@@ -119,6 +119,9 @@ abstract class FlushPolicy implements Cl
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;