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

[jira] [Resolved] (SOLR-11846) TestFieldCacheSort.testFieldScoreReverse() failure

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

Adrien Grand resolved SOLR-11846.
---------------------------------
       Resolution: Fixed
    Fix Version/s: master (8.0)

Thanks Steve for bisecting. This is due to the fact that the test expects scores to increase when freq increases, which not all frequencies guarantee (eg. it is not the case with BooleanSimilarity). I pushed a fix.

> TestFieldCacheSort.testFieldScoreReverse() failure
> --------------------------------------------------
>
>                 Key: SOLR-11846
>                 URL: https://issues.apache.org/jira/browse/SOLR-11846
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Steve Rowe
>             Fix For: master (8.0)
>
>
> Reproducing master failure from my Jenkins:
> {noformat}
>    [junit4] Suite: org.apache.solr.uninverting.TestFieldCacheSort
>    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestFieldCacheSort -Dtests.method=testFieldScoreReverse -Dtests.seed=40E7AB12BCE84E2E -Dtests.slow=true -Dtests.locale=de-LU -Dtests.timezone=US/East-Indiana -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1
>    [junit4] FAILURE 0.06s J4  | TestFieldCacheSort.testFieldScoreReverse <<<
>    [junit4]    > Throwable #1: java.lang.AssertionError: expected:<0> but was:<1>
>    [junit4]    > 	at __randomizedtesting.SeedInfo.seed([40E7AB12BCE84E2E:3B2050254D25C4AD]:0)
>    [junit4]    > 	at org.apache.solr.uninverting.TestFieldCacheSort.testFieldScoreReverse(TestFieldCacheSort.java:445)
>    [junit4]    > 	at java.lang.Thread.run(Thread.java:748)
>    [junit4]   2> NOTE: test params are: codec=Asserting(Lucene70): {string=Lucene50(blocksize=128), t=PostingsFormat(name=Memory), f=PostingsFormat(name=Direct), id=Lucene50(blocksize=128), body=PostingsFormat(name=Direct), value=FST50, tievalue=FST50}, docValues:{}, maxPointsInLeafNode=346, maxMBSortInHeap=6.624884112069825, sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@6e2c8504), locale=de-LU, timezone=US/East-Indiana
>    [junit4]   2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 1.8.0_151 (64-bit)/cpus=16,threads=1,free=176185640,total=525860864
> {noformat}



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

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