Apache Lucene open-source search software
speed up the solr tests, tests were sleeping 2 seconds per leftover thread
Robert Muir6c3184cdb4e2
diff --git a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.javaindex 7174c218bb6..130b5e02fb4 100644--- a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java+++ b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java@@ -534,7 +534,7 @@ public abstract class LuceneTestCase extends Assert {}}- private final static int THREAD_STOP_GRACE_MSEC = 1000;+ private final static int THREAD_STOP_GRACE_MSEC = 50;// jvm-wide list of 'rogue threads' we found, so they only get reported once.private final static IdentityHashMap<Thread,Boolean> rogueThreads = new IdentityHashMap<Thread,Boolean>();@@ -588,9 +588,6 @@ public abstract class LuceneTestCase extends Assert {Thread.setDefaultUncaughtExceptionHandler(null);if (!t.getName().startsWith("SyncThread")) // avoid zookeeper jre crasht.interrupt();- try {- t.join(THREAD_STOP_GRACE_MSEC);- } catch (InterruptedException e) { e.printStackTrace(); }}}}