mirror of https://github.com/apache/lucene.git
minor infoStream improvements
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1652017 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
927827a215
commit
f0f3dc2298
|
@ -446,7 +446,7 @@ class DocumentsWriterPerThread {
|
|||
final double newSegmentSize = segmentInfoPerCommit.sizeInBytes()/1024./1024.;
|
||||
infoStream.message("DWPT", "flushed: segment=" + segmentInfo.name +
|
||||
" ramUsed=" + nf.format(startMBUsed) + " MB" +
|
||||
" newFlushedSize(includes docstores)=" + nf.format(newSegmentSize) + " MB" +
|
||||
" newFlushedSize=" + nf.format(newSegmentSize) + " MB" +
|
||||
" docs/MB=" + nf.format(flushState.segmentInfo.getDocCount() / newSegmentSize));
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ class FlushByRamOrCountsPolicy extends FlushPolicy {
|
|||
control.getDeleteBytesUsed() > (1024*1024*indexWriterConfig.getRAMBufferSizeMB()))) {
|
||||
control.setApplyAllDeletes();
|
||||
if (infoStream.isEnabled("FP")) {
|
||||
infoStream.message("FP", "force apply deletes bytesUsed=" + control.getDeleteBytesUsed() + " vs ramBuffer=" + (1024*1024*indexWriterConfig.getRAMBufferSizeMB()));
|
||||
infoStream.message("FP", "force apply deletes bytesUsed=" + control.getDeleteBytesUsed() + " vs ramBufferMB=" + indexWriterConfig.getRAMBufferSizeMB());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue