From d9ad5bfb76264c4b44d28b578f3b16f013214da2 Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Fri, 16 Aug 2013 17:41:44 +0000 Subject: [PATCH] make RandomMergePolicy log what MP it is wrapping git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1514815 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/solr/util/RandomMergePolicy.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/solr/test-framework/src/java/org/apache/solr/util/RandomMergePolicy.java b/solr/test-framework/src/java/org/apache/solr/util/RandomMergePolicy.java index a58a80c520e..68aa503bafe 100644 --- a/solr/test-framework/src/java/org/apache/solr/util/RandomMergePolicy.java +++ b/solr/test-framework/src/java/org/apache/solr/util/RandomMergePolicy.java @@ -21,6 +21,9 @@ import org.apache.lucene.index.*; import org.apache.lucene.index.MergePolicy.MergeSpecification; import org.apache.lucene.util.LuceneTestCase; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + import java.util.Map; import java.io.IOException; @@ -32,6 +35,8 @@ import java.io.IOException; */ public final class RandomMergePolicy extends MergePolicy { + public static Logger log = LoggerFactory.getLogger(RandomMergePolicy.class); + /** * Not private so tests can inspect it, * Not final so it can be set on clone @@ -45,6 +50,8 @@ public final class RandomMergePolicy extends MergePolicy { super(inner.getNoCFSRatio(), (long) (inner.getMaxCFSSegmentSizeMB() * 1024 * 1024)); this.inner = inner; + log.info("RandomMergePolicy wrapping {}: {}", + inner.getClass(), inner); } public RandomMergePolicy clone() {