diff --git a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java index 565190f370e..b8bfbf79a76 100644 --- a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java +++ b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java @@ -586,7 +586,7 @@ public abstract class LuceneTestCase extends Assert { // try to stop the thread: t.setUncaughtExceptionHandler(null); Thread.setDefaultUncaughtExceptionHandler(null); - if (!t.getName().equals("main-EventThread")) t.interrupt(); + t.interrupt(); try { t.join(THREAD_STOP_GRACE_MSEC); } catch (InterruptedException e) { e.printStackTrace(); } diff --git a/solr/src/test/org/apache/solr/cloud/ZkSolrClientTest.java b/solr/src/test/org/apache/solr/cloud/ZkSolrClientTest.java index 7358e1987b1..c329e9a0173 100644 --- a/solr/src/test/org/apache/solr/cloud/ZkSolrClientTest.java +++ b/solr/src/test/org/apache/solr/cloud/ZkSolrClientTest.java @@ -28,6 +28,7 @@ import org.apache.solr.util.AbstractSolrTestCase; import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; +import org.junit.Ignore; public class ZkSolrClientTest extends AbstractSolrTestCase { private static final boolean DEBUG = false; @@ -159,6 +160,7 @@ public class ZkSolrClientTest extends AbstractSolrTestCase { } } + @Ignore("test case crashes modern jres") public void testWatchChildren() throws Exception { String zkDir = dataDir.getAbsolutePath() + File.separator + "zookeeper/server1/data";