Skip to content

Apache Lucene open-source search software

try to avoid jre bug in test, take 3

Robert Muir4ff404d85bdc
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 b8bfbf79a76..7174c218bb6 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,8 @@ public abstract class LuceneTestCase extends Assert {
// try to stop the thread:
t.setUncaughtExceptionHandler(null);
Thread.setDefaultUncaughtExceptionHandler(null);
- t.interrupt();
+ if (!t.getName().startsWith("SyncThread")) // avoid zookeeper jre crash
+ t.interrupt();
try {
t.join(THREAD_STOP_GRACE_MSEC);
} catch (InterruptedException e) { e.printStackTrace(); }