Apache Lucene open-source search software
Don't interrupt zookeeper's SyncThread because it invokes system.exit. We should ban System.exit via the policy file. Unfortunately System.exit is used by the runner itself too (otherwise it wouldn't be able to exit the JVM in the presence of background threads) so the policy would need to be selective and either ban certain packages or revoke the grant for the runner.
Dawid Weissf45c48e09714
diff --git a/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZk2Test.java b/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZk2Test.javaindex 5fdb5c7278e..8522cc1b2d9 100644--- a/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZk2Test.java+++ b/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZk2Test.java@@ -41,7 +41,6 @@ import com.carrotsearch.randomizedtesting.annotations.ThreadLeakAction.Action;* This test simply does a bunch of basic things in solrcloud mode and asserts things* work as expected.*/-@ThreadLeakAction({Action.WARN})public class BasicDistributedZk2Test extends AbstractFullDistribZkTestBase {/*diff --git a/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZkTest.javaindex 00aee4f33b9..bfb19682504 100644--- a/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZkTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/BasicDistributedZkTest.java@@ -78,7 +78,6 @@ import com.carrotsearch.randomizedtesting.annotations.ThreadLeakAction.Action;* work as expected.*/@Slow-@ThreadLeakAction({Action.WARN})public class BasicDistributedZkTest extends AbstractDistribZkTestBase {private static final String DEFAULT_COLLECTION = "collection1";diff --git a/solr/test-framework/src/java/org/apache/solr/SolrIgnoredThreadsFilter.java b/solr/test-framework/src/java/org/apache/solr/SolrIgnoredThreadsFilter.javaindex 85b9e0531b3..0a915d29e6b 100644--- a/solr/test-framework/src/java/org/apache/solr/SolrIgnoredThreadsFilter.java+++ b/solr/test-framework/src/java/org/apache/solr/SolrIgnoredThreadsFilter.java@@ -47,6 +47,12 @@ public class SolrIgnoredThreadsFilter implements ThreadFilter {threadName.startsWith("httpShardExecutor-")) {return true;}++ // This is a bug in ZooKeeper where they call System.exit(11) when+ // this thread receives an interrupt signal.+ if (threadName.startsWith("SyncThread")) {+ return true;+ }// THESE ARE LIKELY BUGS - these threads should be closed!if (threadName.startsWith("Overseer-") ||