Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

during flush, log to infoStream size of all DWPTs considered for flush

Michael McCandlessb9210310304f
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;