Skip to content

Apache Lucene open-source search software

SOLR-4198: OverseerCollectionProcessor should implement ClosableThread.

Mark Robert Miller181cad843ab0
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index ca23f2a5f8b..2fa2ac3ce5b 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -359,6 +359,9 @@ Bug Fixes
container includes the correct slf4j api and impl jars.
(Shawn Heisey, hossman)
+* SOLR-4198: OverseerCollectionProcessor should implement ClosableThread.
+ (Mark Miller)
+
Other Changes
----------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java
index 94ab55334b4..20e668ba1ef 100644
--- a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java
+++ b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java
@@ -25,6 +25,7 @@ import java.util.Set;
import org.apache.solr.common.SolrException;
import org.apache.solr.common.SolrException.ErrorCode;
+import org.apache.solr.common.cloud.ClosableThread;
import org.apache.solr.common.cloud.ClusterState;
import org.apache.solr.common.cloud.DocCollection;
import org.apache.solr.common.cloud.Replica;
@@ -43,7 +44,7 @@ import org.apache.zookeeper.KeeperException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-public class OverseerCollectionProcessor implements Runnable {
+public class OverseerCollectionProcessor implements Runnable, ClosableThread {
public static final String NUM_SLICES = "numShards";
@@ -383,4 +384,9 @@ public class OverseerCollectionProcessor implements Runnable {
throw ex;
}
}
+
+ @Override
+ public boolean isClosed() {
+ return isClosed;
+ }
}