Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12606

InfixSuggestersTest.testShutdownDuringBuild() failures

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.5, 8.0
    • Component/s: Tests
    • Labels:
      None

      Description

      From https://builds.apache.org/job/Lucene-Solr-SmokeRelease-master/1082/:

         [smoker]    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=InfixSuggestersTest -Dtests.method=testShutdownDuringBuild -Dtests.seed=52931F3B5B6B1523 -Dtests.multiplier=2 -Dtests.locale=sk-SK -Dtests.timezone=Asia/Oral -Dtests.asserts=true -Dtests.file.encoding=US-ASCII
         [smoker]    [junit4] ERROR   1.37s J0 | InfixSuggestersTest.testShutdownDuringBuild <<<
         [smoker]    [junit4]    > Throwable #1: java.util.concurrent.ExecutionException: junit.framework.AssertionFailedError: Unexpected wrapped exception type, expected CoreIsClosedException
         [smoker]    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([52931F3B5B6B1523:8D1E7D8465024041]:0)
         [smoker]    [junit4]    > 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
         [smoker]    [junit4]    > 	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
         [smoker]    [junit4]    > 	at org.apache.solr.handler.component.InfixSuggestersTest.testShutdownDuringBuild(InfixSuggestersTest.java:130)
         [smoker]    [junit4]    > 	at java.lang.Thread.run(Thread.java:748)
         [smoker]    [junit4]    > Caused by: junit.framework.AssertionFailedError: Unexpected wrapped exception type, expected CoreIsClosedException
         [smoker]    [junit4]    > 	at org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2734)
         [smoker]    [junit4]    > 	at org.apache.solr.handler.component.InfixSuggestersTest.lambda$testShutdownDuringBuild$3(InfixSuggestersTest.java:121)
         [smoker]    [junit4]    > 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
         [smoker]    [junit4]    > 	at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:209)
         [smoker]    [junit4]    > 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
         [smoker]    [junit4]    > 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
         [smoker]    [junit4]    > 	... 1 more
         [smoker]    [junit4]    > Caused by: java.lang.RuntimeException: Exception during query
         [smoker]    [junit4]    > 	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:917)
         [smoker]    [junit4]    > 	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:877)
         [smoker]    [junit4]    > 	at org.apache.solr.handler.component.InfixSuggestersTest.lambda$null$2(InfixSuggestersTest.java:122)
         [smoker]    [junit4]    > 	at org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2726)
         [smoker]    [junit4]    > 	... 6 more
         [smoker]    [junit4]    > Caused by: org.apache.solr.common.SolrException: SolrCoreState already closed.
         [smoker]    [junit4]    > 	at org.apache.solr.update.DefaultSolrCoreState.lock(DefaultSolrCoreState.java:186)
         [smoker]    [junit4]    > 	at org.apache.solr.update.DefaultSolrCoreState.getIndexWriter(DefaultSolrCoreState.java:121)
         [smoker]    [junit4]    > 	at org.apache.solr.update.SolrCoreState.getTragicException(SolrCoreState.java:198)
         [smoker]    [junit4]    > 	at org.apache.solr.core.CoreContainer.checkTragicException(CoreContainer.java:1812)
         [smoker]    [junit4]    > 	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:212)
         [smoker]    [junit4]    > 	at org.apache.solr.core.SolrCore.execute(SolrCore.java:2541)
         [smoker]    [junit4]    > 	at org.apache.solr.util.TestHarness.query(TestHarness.java:337)
         [smoker]    [junit4]    > 	at org.apache.solr.util.TestHarness.query(TestHarness.java:319)
         [smoker]    [junit4]    > 	at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:891)
         [smoker]    [junit4]    > 	... 9 more
      

        Attachments

        1. SOLR-12606.patch
          9 kB
          Steve Rowe

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                steve_rowe Steve Rowe
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: