mirror of https://github.com/apache/lucene.git
Clean up the executor.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1393954 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
da1c35cf31
commit
690a6a0e13
|
@ -44,7 +44,7 @@ import org.apache.solr.update.SolrCmdDistributor.StdNode;
|
|||
import org.apache.solr.util.DefaultSolrThreadFactory;
|
||||
|
||||
public class SolrCmdDistributorTest extends BaseDistributedSearchTestCase {
|
||||
private static ThreadPoolExecutor executor;
|
||||
private ThreadPoolExecutor executor;
|
||||
|
||||
public SolrCmdDistributorTest() {
|
||||
fixShardCount = true;
|
||||
|
@ -240,6 +240,7 @@ public class SolrCmdDistributorTest extends BaseDistributedSearchTestCase {
|
|||
@Override
|
||||
public void tearDown() throws Exception {
|
||||
ExecutorUtil.shutdownNowAndAwaitTermination(executor);
|
||||
executor = null;
|
||||
super.tearDown();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue