[ https://issues.apache.org/jira/browse/LUCENE-7514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15989906#comment-15989906 ]
Dawid Weiss commented on LUCENE-7514: ------------------------------------- Didn't look, but I once replaced float generation with "biased" floats and it was relatively easy to break other geo tests too. > TestLatLonPointQueries fails with biased (evil) numbers > ------------------------------------------------------- > > Key: LUCENE-7514 > URL: https://issues.apache.org/jira/browse/LUCENE-7514 > Project: Lucene - Core > Issue Type: Bug > Reporter: Dawid Weiss > Priority: Minor > Attachments: LUCENE-7514.patch > > > After I commit LUCENE-7513 and switch to evil numbers, some tests fail in > TestLatLonPointQueries. Could be I made a mistake somewhere in BiasedNumbers, > but a verification would be nice. > Example failing seed: > -Dtests.seed=B6740F75309ABA5D > but it fails with multiple seeds, actually. The output for the seed above: > {code} > [junit4] 2> NOTE: reproduce with: ant test > -Dtestcase=TestLatLonPointQueries -Dtests.method=testAllLatEqual > -Dtests.seed=B6740F75309ABA5D -Dtests.slow=true -Dtests.locale=lv-LV > -Dtests.timezone=Antarctica/McMurdo -Dtests.asserts=true > -Dtests.file.encoding=UTF-8 > [junit4] FAILURE 1.42s | TestLatLonPointQueries.testAllLatEqual <<< > [junit4] > Throwable #1: java.lang.AssertionError: wrong hit (first of > possibly more): > [junit4] > FAIL: id=6 should not match but did > [junit4] > box=Rectangle(lat=0.0 TO 1.401298464324817E-45 > lon=179.99999999999997 TO 180.0) > [junit4] > query=point:[0.0 TO 0.0],[179.99999991618097 TO > 179.99999991618097] docID=6 > [junit4] > lat=0.0 lon=179.99999991618097 > [junit4] > deleted?=false > [junit4] > at > __randomizedtesting.SeedInfo.seed([B6740F75309ABA5D:BE159FB39579850]:0) > [junit4] > at > org.apache.lucene.geo.BaseGeoPointTestCase.verifyRandomRectangles(BaseGeoPointTestCase.java:858) > [junit4] > at > org.apache.lucene.geo.BaseGeoPointTestCase.verify(BaseGeoPointTestCase.java:740) > [junit4] > at > org.apache.lucene.geo.BaseGeoPointTestCase.testAllLatEqual(BaseGeoPointTestCase.java:449) > [junit4] > at java.lang.Thread.run(Thread.java:745) > [junit4] 2> NOTE: test params are: codec=Asserting(Lucene70): > {id=FST50}, docValues:{id=DocValuesFormat(name=Asserting), > point=DocValuesFormat(name=Direct)}, maxPointsInLeafNode=1823, > maxMBSortInHeap=7.309388819818781, sim=RandomSimilarity(queryNorm=false): {}, > locale=lv-LV, timezone=Antarctica/McMurdo > [junit4] 2> NOTE: Windows 10 10.0 amd64/Oracle Corporation 1.8.0_102 > (64-bit)/cpus=8,threads=1,free=182766440,total=257425408 > [junit4] 2> NOTE: All tests run in this JVM: [TestLatLonPointQueries] > [junit4] Completed [1/1 (1!)] in 1.98s, 1 test, 1 failure <<< FAILURES! > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org