[ 
https://issues.apache.org/jira/browse/SOLR-10565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16006713#comment-16006713
 ] 

Hoss Man commented on SOLR-10565:
---------------------------------

increasing the size of the randomly generated name(s) doesn't do anything to 
ensure that they don't collide.

if we need unique ObjectNames then the test should either generate the random 
strings in a loop untill it gets enough unique ones, or use some unique counter 
as part of the name.

> SolrJmxReporterTest.testEnabled() failure
> -----------------------------------------
>
>                 Key: SOLR-10565
>                 URL: https://issues.apache.org/jira/browse/SOLR-10565
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: metrics
>            Reporter: Steve Rowe
>            Assignee: Andrzej Bialecki 
>             Fix For: 6.6, master (7.0)
>
>
> My Jenkins found a reproducing branch_6x seed:
> {noformat}
> Checking out Revision ea3f9bb87d1e6c3cf812122c3a6f9160a8b49a19 
> (refs/remotes/origin/branch_6x)
> [...]
>    [junit4]   2> 86968 INFO  
> (TEST-SolrJmxReporterTest.testEnabled-seed#[79BD33EADDE24AC0]) [    
> x:collection1] o.a.s.SolrTestCaseJ4 ###Ending testEnabled
>    [junit4]   2> NOTE: reproduce with: ant test  
> -Dtestcase=SolrJmxReporterTest -Dtests.method=testEnabled 
> -Dtests.seed=79BD33EADDE24AC0 -Dtests.slow=true -Dtests.locale=cs 
> -Dtests.timezone=Europe/Amsterdam -Dtests.asserts=true 
> -Dtests.file.encoding=US-ASCII
>    [junit4] FAILURE 0.82s J6  | SolrJmxReporterTest.testEnabled <<<
>    [junit4]    > Throwable #1: java.lang.AssertionError: expected:<1> but 
> was:<2>
>    [junit4]    >      at 
> __randomizedtesting.SeedInfo.seed([79BD33EADDE24AC0:4E7C92349C473AB0]:0)
>    [junit4]    >      at 
> org.apache.solr.metrics.reporters.SolrJmxReporterTest.testEnabled(SolrJmxReporterTest.java:197)
> [...]
>    [junit4]   2> NOTE: test params are: codec=Asserting(Lucene62): {}, 
> docValues:{}, maxPointsInLeafNode=1415, maxMBSortInHeap=6.528209197753226, 
> sim=RandomSimilarity(queryNorm=false,coord=yes): {}, locale=cs, 
> timezone=Europe/Amsterdam
>    [junit4]   2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 
> 1.8.0_77 (64-bit)/cpus=16,threads=1,free=154074736,total=443023360
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to