You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2018/12/01 17:10:16 UTC

[28/32] lucene-solr:jira/http2: SOLR-12801: Fix thread leak in test.

SOLR-12801: Fix thread leak in test.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/9b0b9032
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9b0b9032
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9b0b9032

Branch: refs/heads/jira/http2
Commit: 9b0b9032e2571b3a37aef93d823161b1b934381e
Parents: 33c40a8
Author: markrmiller <ma...@apache.org>
Authored: Sat Dec 1 00:50:54 2018 -0600
Committer: markrmiller <ma...@apache.org>
Committed: Sat Dec 1 00:53:12 2018 -0600

----------------------------------------------------------------------
 .../apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9b0b9032/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java
index bdf0737..ed9aac2 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimDistributedQueue.java
@@ -215,7 +215,7 @@ public class TestSimDistributedQueue extends SolrTestCaseJ4 {
       super.tearDown();
     } catch (Exception exc) {
     }
-    executor.shutdown();
+    ExecutorUtil.shutdownAndAwaitTermination(executor);
   }
 
 }