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

Chris M. Hostetter reopened SOLR-14574:
---------------------------------------

git bisect has identified 102fc9d7e01966220927b90b13c72f3240890173 as the cause 
of reproducing jenkins failures on branch_8x...

{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=CurrencyRangeFacetCloudTest 
-Dtests.method=testJsonRangeFacetWithSubFacet -Dtests.seed=CD147601CAF7C287 
-Dtests.multiplier=2 -Dtests.slow=true -Dtests.locale=uk-UA 
-Dtests.timezone=Asia/Taipei -Dtests.asserts=true -Dtests.file.encoding=UTF-8
   [junit4] FAILURE 0.05s J2 | 
CurrencyRangeFacetCloudTest.testJsonRangeFacetWithSubFacet <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: 
q=*:*&rows=0&json.facet={+bar:{+type:range,+field:amount_CFT,+domain:+{+filter:'id_i1:[5+TO+*]'},++++++++start:'0,EUR',+gap:'10,EUR',+end:'15,EUR',+other:all+++++++++facet:+{+foo:{+type:terms,+field:x_s,++++++++++++++++++++++++refine:true,+limit:2,+overrequest:0+}+}+}+}&_stateVer_=org.apache.solr.search.CurrencyRangeFacetCloudTest:4
 -> 
{responseHeader={zkConnected=true,status=0,QTime=1,params={q=*:*,json.facet={ 
bar:{ type:range, field:amount_CFT, domain: { filter:'id_i1:[5 TO *]'},        
start:'0,EUR', gap:'10,EUR', end:'15,EUR', other:all         facet: { foo:{ 
type:terms, field:x_s,                        refine:true, limit:2, 
overrequest:0 } } } 
},_stateVer_=org.apache.solr.search.CurrencyRangeFacetCloudTest:4,rows=0,wt=javabin,version=2}},response={numFound=15,numFoundExact=true,start=0,docs=[]},facets={count=15,bar={buckets=[{val=0.00,EUR,count=4,foo={buckets=[{val=x2,count=2},
 {val=x0,count=1}]}}, {val=10.00,EUR,count=4,foo={buckets=[{val=x0,count=2}, 
{val=x1,count=1}]}}],before={count=0},after={count=2,foo={buckets=[{val=x1,count=1},
 {val=x2,count=1}]}},between={count=8,foo={buckets=[{val=x0,count=3}, 
{val=x2,count=3}]}}}}} ===> bucket #0 expected: java.lang.Long<4> but was: 
java.lang.Integer<4>
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([CD147601CAF7C287:C1223B450119B7D1]:0)
   [junit4]    >        at 
org.apache.solr.search.CurrencyRangeFacetCloudTest.testJsonRangeFacetWithSubFacet(CurrencyRangeFacetCloudTest.java:432)
   [junit4]    >        at java.lang.Thread.run(Thread.java:748)
   [junit4]    > Caused by: java.lang.AssertionError: bucket #0 expected: 
java.lang.Long<4> but was: java.lang.Integer<4>
   [junit4]    >        at 
org.apache.solr.search.CurrencyRangeFacetCloudTest.testJsonRangeFacetWithSubFacet(CurrencyRangeFacetCloudTest.java:397)
   [junit4]    >        ... 39 more

 {noformat}

[~erickerickson] why did you change this assert?...

https://github.com/apache/lucene-solr/commit/102fc9d/#diff-b91c0a3fe5cf25c503d0d759d83cb490L381

{noformat}
-          assertEqualsHACK("bucket #" + i, 4L, bucket.get("count"));
+          assertEquals("bucket #" + i, 4L, bucket.get("count"));
+          @SuppressWarnings({"unchecked"})
{noformat}

> Fix or suppress warnings in solr/core/src/test
> ----------------------------------------------
>
>                 Key: SOLR-14574
>                 URL: https://issues.apache.org/jira/browse/SOLR-14574
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Erick Erickson
>            Assignee: Erick Erickson
>            Priority: Major
>             Fix For: 8.6
>
>
> Just when I thought I was done I ran testClasses
> I'm going to do this a little differently. Rather than do a directory at a 
> time, I'll just fix a bunch, push, fix a bunch more, push all on this Jira 
> until I'm done.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to