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:
Dawid Weiss 2012-10-04 08:28:23 +00:00
parent da1c35cf31
commit 690a6a0e13
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}
}