You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2012/10/04 10:28:24 UTC

svn commit: r1393954 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/SolrCmdDistributorTest.java

Author: dweiss
Date: Thu Oct  4 08:28:23 2012
New Revision: 1393954

URL: http://svn.apache.org/viewvc?rev=1393954&view=rev
Log:
Clean up the executor.

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/SolrCmdDistributorTest.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/SolrCmdDistributorTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/SolrCmdDistributorTest.java?rev=1393954&r1=1393953&r2=1393954&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/SolrCmdDistributorTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/update/SolrCmdDistributorTest.java Thu Oct  4 08:28:23 2012
@@ -44,7 +44,7 @@ import org.apache.solr.update.SolrCmdDis
 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 exte
   @Override
   public void tearDown() throws Exception {
     ExecutorUtil.shutdownNowAndAwaitTermination(executor);
+    executor = null;
     super.tearDown();
   }
 }