Description
The multithreaded test doesn't actually start the threads, but only invokes the run directly. The join afterwards doesn't do anything, hence.
diff --git a/solr/core/src/test/org/apache/solr/update/processor/AtomicUpdateProcessorFactoryTest.java b/solr/core/src/test/org/apache/solr/update/processor/AtomicUpdateProcessorFactoryTest.java index f3f833d..10b7770 100644 --- a/solr/core/src/test/org/apache/solr/update/processor/AtomicUpdateProcessorFactoryTest.java +++ b/solr/core/src/test/org/apache/solr/update/processor/AtomicUpdateProcessorFactoryTest.java @@ -238,7 +238,7 @@ public class AtomicUpdateProcessorFactoryTest extends SolrTestCaseJ4 { } } }; - t.run(); + t.run(); // red flag, shouldn't this be t.start? threads.add(t); finalCount += index; //int_i }
Attachments
Attachments
Issue Links
- relates to
-
SOLR-11311 Improving AtomicUpdateProcessorFactoryTest
- Resolved