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

Hoss Man updated SOLR-11016:
----------------------------
    Attachment: SOLR-11016.patch

Silly test bug -- the helper methods for verifying the facet results don't 
account for the possibility that the query won't match any (of the randomly 
indexed) documents.

Attached patch was generated from master, but also applies cleanly to 6x where 
I verified it fixes the mentioned seed failures.  It also includes some new 
"bespoke" queries that force issues like this to crop up regardless of the seed.

I'll hammer on this on master for a bit & then commit & backport to 7x

> TestCloudJSONFacetJoinDomain.testBespoke() failures
> ---------------------------------------------------
>
>                 Key: SOLR-11016
>                 URL: https://issues.apache.org/jira/browse/SOLR-11016
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Steve Rowe
>         Attachments: SOLR-11016.patch
>
>
> Policeman Jenkins found a reproducing branch_6x seed 
> [https://jenkins.thetaphi.de/job/Lucene-Solr-6.x-MacOSX/980/]:
> {noformat}
> Checking out Revision 9947a811e83cc0f848f9ddaa37a4137f19efff1a 
> (refs/remotes/origin/branch_6x)
> [...]
>    [junit4]   2> NOTE: reproduce with: ant test  
> -Dtestcase=TestCloudJSONFacetJoinDomain -Dtests.method=testBespoke 
> -Dtests.seed=CF428F9440CE16E -Dtests.slow=true -Dtests.locale=cs 
> -Dtests.timezone=America/Aruba -Dtests.asserts=true 
> -Dtests.file.encoding=UTF-8
>    [junit4] FAILURE 1.72s J1 | TestCloudJSONFacetJoinDomain.testBespoke <<<
>    [junit4]    > Throwable #1: java.lang.AssertionError: 
> {main(json.facet={top+:+{+type:terms,+field:field_9_is,+limit:+21,+domain:{join:{from:field_5_idsS,to:field_9_is}}}+}),extra(q=(field_7_ids:6+OR+field_3_is:3)&rows=0)}
>  ===> 
> {responseHeader={zkConnected=true,status=0,QTime=5},response={numFound=0,start=0,maxScore=0.0,docs=[]},facets={count=0}}
>  --> top key missing from: {count=0}
>    [junit4]    >      at 
> __randomizedtesting.SeedInfo.seed([CF428F9440CE16E:72FACC08C8C2699]:0)
>    [junit4]    >      at 
> org.apache.solr.cloud.TestCloudJSONFacetJoinDomain.assertFacetCountsAreCorrect(TestCloudJSONFacetJoinDomain.java:333)
>    [junit4]    >      at 
> org.apache.solr.cloud.TestCloudJSONFacetJoinDomain.testBespoke(TestCloudJSONFacetJoinDomain.java:262)
>    [junit4]    >      at java.lang.Thread.run(Thread.java:748)
>    [junit4]    > Caused by: java.lang.AssertionError: top key missing from: 
> {count=0}
>    [junit4]    >      at 
> org.apache.solr.cloud.TestCloudJSONFacetJoinDomain.assertFacetCountsAreCorrect(TestCloudJSONFacetJoinDomain.java:351)
>    [junit4]    >      at 
> org.apache.solr.cloud.TestCloudJSONFacetJoinDomain.assertFacetCountsAreCorrect(TestCloudJSONFacetJoinDomain.java:331)
> [...]
>    [junit4]   2> NOTE: test params are: codec=CheapBastard, 
> sim=RandomSimilarity(queryNorm=true,coord=crazy): {}, locale=cs, 
> timezone=America/Aruba
>    [junit4]   2> NOTE: Mac OS X 10.11.6 x86_64/Oracle Corporation 1.8.0_131 
> (64-bit)/cpus=3,threads=1,free=58802776,total=266338304
> {noformat}
> Another reproducing branch_6x seed, from 
> [https://jenkins.thetaphi.de/job/Lucene-Solr-6.x-Solaris/849/] (job history 
> has been removed since it's too old - notification email arrived on May 24th):
> {noformat}
> Java: 64bit/jdk1.8.0 -XX:+UseCompressedOops -XX:+UseSerialGC
> 1 tests failed.
> FAILED:  org.apache.solr.cloud.TestCloudJSONFacetJoinDomain.testBespoke
> Error Message:
> {main(json.facet={top+:+{+type:terms,+field:field_9_is,+limit:+21,+domain:{join:{from:field_5_idsS,to:field_9_is}}}+}),extra(q=(field_7_ids:6+OR+field_3_is:3)&rows=0)}
>  ===> 
> {responseHeader={zkConnected=true,status=0,QTime=2},response={numFound=0,start=0,maxScore=0.0,docs=[]},facets={count=0}}
>  --> top key missing from: {count=0}
> Stack Trace:
> java.lang.AssertionError: 
> {main(json.facet={top+:+{+type:terms,+field:field_9_is,+limit:+21,+domain:{join:{from:field_5_idsS,to:field_9_is}}}+}),extra(q=(field_7_ids:6+OR+field_3_is:3)&rows=0)}
>  ===> 
> {responseHeader={zkConnected=true,status=0,QTime=2},response={numFound=0,start=0,maxScore=0.0,docs=[]},facets={count=0}}
>  --> top key missing from: {count=0}
>       at 
> __randomizedtesting.SeedInfo.seed([D2F19637CE167869:D92A120E0696BF9E]:0)
>       at 
> org.apache.solr.cloud.TestCloudJSONFacetJoinDomain.assertFacetCountsAreCorrect(TestCloudJSONFacetJoinDomain.java:333)
>       at 
> org.apache.solr.cloud.TestCloudJSONFacetJoinDomain.testBespoke(TestCloudJSONFacetJoinDomain.java:262)
> {noformat}
> Note that both of the above seeds reproduce for me on Linux with Java8.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to