mirror of https://github.com/apache/lucene.git
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:
parent
fe0340cf60
commit
f45c48e097
|
@ -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
|
* This test simply does a bunch of basic things in solrcloud mode and asserts things
|
||||||
* work as expected.
|
* work as expected.
|
||||||
*/
|
*/
|
||||||
@ThreadLeakAction({Action.WARN})
|
|
||||||
public class BasicDistributedZk2Test extends AbstractFullDistribZkTestBase {
|
public class BasicDistributedZk2Test extends AbstractFullDistribZkTestBase {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -78,7 +78,6 @@ import com.carrotsearch.randomizedtesting.annotations.ThreadLeakAction.Action;
|
||||||
* work as expected.
|
* work as expected.
|
||||||
*/
|
*/
|
||||||
@Slow
|
@Slow
|
||||||
@ThreadLeakAction({Action.WARN})
|
|
||||||
public class BasicDistributedZkTest extends AbstractDistribZkTestBase {
|
public class BasicDistributedZkTest extends AbstractDistribZkTestBase {
|
||||||
|
|
||||||
private static final String DEFAULT_COLLECTION = "collection1";
|
private static final String DEFAULT_COLLECTION = "collection1";
|
||||||
|
|
|
@ -47,6 +47,12 @@ public class SolrIgnoredThreadsFilter implements ThreadFilter {
|
||||||
threadName.startsWith("httpShardExecutor-")) {
|
threadName.startsWith("httpShardExecutor-")) {
|
||||||
return true;
|
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!
|
// THESE ARE LIKELY BUGS - these threads should be closed!
|
||||||
if (threadName.startsWith("Overseer-") ||
|
if (threadName.startsWith("Overseer-") ||
|
||||||
|
|
Loading…
Reference in New Issue