mirror of https://github.com/apache/lucene.git
SOLR-4198: OverseerCollectionProcessor should implement ClosableThread.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1422371 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a9e41d20a3
commit
181cad843a
|
@ -359,6 +359,9 @@ Bug Fixes
|
||||||
container includes the correct slf4j api and impl jars.
|
container includes the correct slf4j api and impl jars.
|
||||||
(Shawn Heisey, hossman)
|
(Shawn Heisey, hossman)
|
||||||
|
|
||||||
|
* SOLR-4198: OverseerCollectionProcessor should implement ClosableThread.
|
||||||
|
(Mark Miller)
|
||||||
|
|
||||||
Other Changes
|
Other Changes
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ import java.util.Set;
|
||||||
|
|
||||||
import org.apache.solr.common.SolrException;
|
import org.apache.solr.common.SolrException;
|
||||||
import org.apache.solr.common.SolrException.ErrorCode;
|
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.ClusterState;
|
||||||
import org.apache.solr.common.cloud.DocCollection;
|
import org.apache.solr.common.cloud.DocCollection;
|
||||||
import org.apache.solr.common.cloud.Replica;
|
import org.apache.solr.common.cloud.Replica;
|
||||||
|
@ -43,7 +44,7 @@ import org.apache.zookeeper.KeeperException;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
public class OverseerCollectionProcessor implements Runnable {
|
public class OverseerCollectionProcessor implements Runnable, ClosableThread {
|
||||||
|
|
||||||
public static final String NUM_SLICES = "numShards";
|
public static final String NUM_SLICES = "numShards";
|
||||||
|
|
||||||
|
@ -383,4 +384,9 @@ public class OverseerCollectionProcessor implements Runnable {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isClosed() {
|
||||||
|
return isClosed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue