You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2016/11/11 16:43:58 UTC

[jira] [Commented] (SOLR-9752) Reliable test failure in TestFieldCacheSort (Solr copy)

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

Yonik Seeley commented on SOLR-9752:
------------------------------------

Hopefully this is just a test bug and not a Lucene bug, but I don't see anything wrong with the test on first glance.
The test itself also has nothing to do with the fieldCache - it's testing sorting by score.

Maybe it's something to do with this?
{code}
sim=RandomSimilarity(queryNorm=false,coord=crazy):
{code>
Perhaps some sort of crazy scoring can lead the scores of the two matching documents to be equal, and hence a sort by score won't yield the reverse order of a sort by reverse score (that's what the test is testing).
So perhaps this is just a little bit too much random craziness in the test framework that makes this particular test not always true.


> Reliable test failure in TestFieldCacheSort (Solr copy)
> -------------------------------------------------------
>
>                 Key: SOLR-9752
>                 URL: https://issues.apache.org/jira/browse/SOLR-9752
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>         Environment: OS X, Sierra
>            Reporter: Erick Erickson
>
> I found this to reliably fail on 6x, see the whole dump below. At
> least the 4 times I tried it. I hit this running the full test suite
> for SOLR-9166, but then reproduced it on a fresh 6x checkout. 
> It did NOT repro on trunk the one time I tried it there.
> OS X, Sierra
> Here's the test that failed, I didn't try other variants.
> ant test  -Dtestcase=TestFieldCacheSort
> -Dtests.method=testFieldScoreReverse -Dtests.seed=8A982858396AE681
> -Dtests.slow=true -Dtests.locale=es-VE -Dtests.timezone=Asia/Baku
> -Dtests.asserts=true -Dtests.file.encoding=UTF-8
> [junit4:pickseed] Seed property 'tests.seed' already defined: 8A982858396AE681
>    [junit4] <JUnit4> says ciao! Master seed: 8A982858396AE681
>    [junit4] Executing 1 suite with 1 JVM.
>    [junit4]
>    [junit4] Started J0 PID(19306@Ericks-MacBook-Pro.local).
>    [junit4] Suite: org.apache.solr.uninverting.TestFieldCacheSort
>    [junit4]   2> NOTE: reproduce with: ant test
> -Dtestcase=TestFieldCacheSort -Dtests.method=testFieldScoreReverse
> -Dtests.seed=8A982858396AE681 -Dtests.slow=true -Dtests.locale=es-VE
> -Dtests.timezone=Asia/Baku -Dtests.asserts=true
> -Dtests.file.encoding=UTF-8
>    [junit4] FAILURE 3.18s | TestFieldCacheSort.testFieldScoreReverse <<<
>    [junit4]    > Throwable #1: java.lang.AssertionError: expected:<0>
> but was:<1>
>    [junit4]    > at
> __randomizedtesting.SeedInfo.seed([8A982858396AE681:F15FD36FC8A76C02]:0)
>    [junit4]    > at
> org.apache.solr.uninverting.TestFieldCacheSort.testFieldScoreReverse(TestFieldCacheSort.java:445)
>    [junit4]    > at java.lang.Thread.run(Thread.java:745)
>    [junit4]   2> NOTE: test params are: codec=Asserting(Lucene62):
> {value=FSTOrd50}, docValues:{}, maxPointsInLeafNode=1095,
> maxMBSortInHeap=5.032597879580006,
> sim=RandomSimilarity(queryNorm=false,coord=crazy):
> {value=org.apache.lucene.search.similarities.BooleanSimilarity@5077995e},
> locale=es-VE, timezone=Asia/Baku
>    [junit4]   2> NOTE: Mac OS X 10.12 x86_64/Oracle Corporation
> 1.8.0_45 (64-bit)/cpus=8,threads=1,free=243860576,total=257425408
>    [junit4]   2> NOTE: All tests run in this JVM: [TestFieldCacheSort]
>    [junit4] Completed [1/1 (1!)] in 6.14s, 1 test, 1 failure <<< FAILURES!
>    [junit4] Tests with failures [seed: 8A982858396AE681]:
>    [junit4]   -
> org.apache.solr.uninverting.TestFieldCacheSort.testFieldScoreReverse
>    [junit4] JVM J0:     0.57 ..     8.10 =     7.53s
>    [junit4] Execution time total: 8.10 sec.
>    [junit4] Tests summary: 1 suite, 1 test, 1 failure



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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