Apache Lucene open-source search software
fix testcase to not check unreliable thread state in join helper
Simon Willnauer5c714e8147b2
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java b/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.javaindex 0252c9f1aa6..46052131015 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestDocumentsWriterStallControl.java@@ -27,7 +27,6 @@ import java.util.concurrent.atomic.AtomicBoolean;import org.apache.lucene.index.DocumentsWriterStallControl.MemoryController;import org.apache.lucene.util.LuceneTestCase;-import com.carrotsearch.randomizedtesting.annotations.Repeat;import com.carrotsearch.randomizedtesting.annotations.ThreadLeaks;/**@@ -59,7 +58,7 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase {memCtrl.netBytes = 50;ctrl.updateStalled(memCtrl);assertFalse(ctrl.anyStalledThreads());- join(waitThreads, 100);+ join(waitThreads, 500);}public void testRandom() throws InterruptedException {@@ -297,8 +296,6 @@ public class TestDocumentsWriterStallControl extends LuceneTestCase {throws InterruptedException {for (Thread thread : toJoin) {thread.join(timeout);- assertEquals(thread.getState().toString(), Thread.State.TERMINATED,- thread.getState());}}