You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Christine Poerschke (JIRA)" <ji...@apache.org> on 2018/10/24 19:29:00 UTC

[jira] [Resolved] (SOLR-12905) reproducible MultiSolrCloudTestCaseTest test failure

     [ https://issues.apache.org/jira/browse/SOLR-12905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christine Poerschke resolved SOLR-12905.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: master (8.0)
                   7.6

> reproducible MultiSolrCloudTestCaseTest test failure
> ----------------------------------------------------
>
>                 Key: SOLR-12905
>                 URL: https://issues.apache.org/jira/browse/SOLR-12905
>             Project: Solr
>          Issue Type: Test
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>             Fix For: 7.6, master (8.0)
>
>         Attachments: SOLR-12905.patch
>
>
> We've seen a few of these in Jenkins via the dev list https://lists.apache.org/list.html?dev@lucene.apache.org:lte=1y:%22duplicate%20clusterId%22 e.g.
> {code}
> FAILED: junit.framework.TestSuite.org.apache.solr.cloud.MultiSolrCloudTestCaseTest  Error Message: duplicate clusterId cloud1  Stack Trace: java.lang.AssertionError: duplicate clusterId cloud1 at __randomizedtesting.SeedInfo.seed([6DADDAF691F08EF7]:0) at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at org.apache.solr.cloud.MultiSolrCloudTestCase.doSetupClusters(MultiSolrCloudTestCase.java:93) at org.apache.solr.cloud.MultiSolrCloudTestCaseTest.setupClusters(MultiSolrCloudTestCaseTest.java:53)
> ...
> {code}
> With a big of digging I was able to reliably reproduce it by using {{-Dtests.dups=N}} (which normally runs in multiple JVMs in parallel) together with {{-Dtests.jvms=1}} constraint so that the tests actually run sequentially in one JVM i.e. altogether
> {code}
> ant test -Dtests.dups=10 -Dtests.jvms=1 -Dtestcase=MultiSolrCloudTestCaseTest
> {code}
> The fix is simple i.e. the static {{clusterId2collection}} variable needs to be cleared in @AfterClass as someone ([~janhoy] ?) already mentioned somewhere elsewhere I think.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org