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.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1380200 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dawid Weiss 2012-09-03 11:10:53 +00:00
parent fe0340cf60
commit f45c48e097
3 changed files with 6 additions and 2 deletions

View File

@ -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 {
/*

View File

@ -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";

View File

@ -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-") ||