mirror of https://github.com/apache/lucene.git
SOLr-13428: Take the WARN message out of the logs when optimizing.
This commit is contained in:
parent
5a35ba41f2
commit
f4399a495e
|
@ -652,14 +652,8 @@ public class DirectUpdateHandler2 extends UpdateHandler implements SolrCoreState
|
|||
try {
|
||||
IndexWriter writer = iw.get();
|
||||
if (cmd.optimize) {
|
||||
if (cmd.maxOptimizeSegments == 1) {
|
||||
log.warn("Starting optimize... Reading and rewriting the entire index! Use with care.");
|
||||
} else {
|
||||
log.warn("Starting optimize... Reading and rewriting a potentially large percent of the entire index, reducing to " + cmd.maxOptimizeSegments + " segments");
|
||||
}
|
||||
writer.forceMerge(cmd.maxOptimizeSegments);
|
||||
} else if (cmd.expungeDeletes) {
|
||||
log.warn("Starting expungeDeletes... Reading and rewriting segments with enough deletes, potentially the entire index");
|
||||
writer.forceMergeDeletes();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue