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

Michael McCandless commented on LUCENE-6780:
--------------------------------------------

I was working on getting {{BKDDistanceQuery}} working again, but hit failures 
with a large radius, so I also fixed {{TestGeoPointQuery}} to use a large 
radius (just committed) and it causes test failures, e.g.:

{noformat}
[junit4:pickseed] Seed property 'tests.seed' already defined: 651AF6100346C910
   [junit4] <JUnit4> says g'day! Master seed: 651AF6100346C910
   [junit4] Executing 1 suite with 1 JVM.
   [junit4] 
   [junit4] Started J0 PID(28673@localhost).
   [junit4] Suite: org.apache.lucene.search.TestGeoPointQuery
   [junit4]   1> T0: id=5 docID=5 lat=-30.70619555695309 
lon=-119.07908745059306 deleted?=false expected=false but got true 
query=GeoPointDistanceQuery: field=geoField: Center: 
[119.51155579512795,-29.46313019984308] Distance: 9353340.676650032 meters]
   [junit4]   2> Zář 15, 2015 10:00:15 ODP. 
com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler
 uncaughtException
   [junit4]   2> WARNING: Uncaught exception in thread: 
Thread[T0,5,TGRP-TestGeoPointQuery]
   [junit4]   2> java.lang.AssertionError: wrong hit
   [junit4]   2>        at 
__randomizedtesting.SeedInfo.seed([651AF6100346C910]:0)
   [junit4]   2>        at org.junit.Assert.fail(Assert.java:93)
   [junit4]   2>        at 
org.apache.lucene.search.TestGeoPointQuery$VerifyHits.test(TestGeoPointQuery.java:560)
   [junit4]   2>        at 
org.apache.lucene.search.TestGeoPointQuery$1._run(TestGeoPointQuery.java:501)
   [junit4]   2>        at 
org.apache.lucene.search.TestGeoPointQuery$1.run(TestGeoPointQuery.java:396)
   [junit4]   2> 
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestGeoPointQuery 
-Dtests.method=testRandomTiny -Dtests.seed=651AF6100346C910 
-Dtests.multiplier=5 -Dtests.locale=cs -Dtests.timezone=Africa/Windhoek 
-Dtests.asserts=true -Dtests.file.encoding=UTF-8
   [junit4] ERROR   0.24s | TestGeoPointQuery.testRandomTiny <<<
   [junit4]    > Throwable #1: 
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an uncaught 
exception in thread: Thread[id=14, name=T0, state=RUNNABLE, 
group=TGRP-TestGeoPointQuery]
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([651AF6100346C910:2C5D28565D67F1BC]:0)
   [junit4]    > Caused by: java.lang.AssertionError: wrong hit
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([651AF6100346C910]:0)
   [junit4]    >        at 
org.apache.lucene.search.TestGeoPointQuery$VerifyHits.test(TestGeoPointQuery.java:560)
   [junit4]    >        at 
org.apache.lucene.search.TestGeoPointQuery$1._run(TestGeoPointQuery.java:501)
   [junit4]    >        at 
org.apache.lucene.search.TestGeoPointQuery$1.run(TestGeoPointQuery.java:396)
   [junit4]   2> NOTE: test params are: codec=Asserting(Lucene53): 
{id=PostingsFormat(name=LuceneVarGapFixedInterval), geoField=FST50}, 
docValues:{id=DocValuesFormat(name=Direct), 
geoField=DocValuesFormat(name=Lucene50)}, 
sim=RandomSimilarityProvider(queryNorm=false,coord=yes): {}, locale=cs, 
timezone=Africa/Windhoek
   [junit4]   2> NOTE: Linux 3.13.0-61-generic amd64/Oracle Corporation 
1.8.0_40 (64-bit)/cpus=8,threads=1,free=383358232,total=504889344
   [junit4]   2> NOTE: All tests run in this JVM: [TestGeoPointQuery]
   [junit4] Completed [1/1] in 0.57s, 1 test, 1 error <<< FAILURES!
   [junit4] 
   [junit4] 
   [junit4] Tests with failures:
   [junit4]   - org.apache.lucene.search.TestGeoPointQuery.testRandomTiny
{noformat}

A very large radius (such that it can span the entire earth) should work?

I'll also commit how far I got with the {{BKDDistanceQuery}} to the branch ...

> GeoPointDistanceQuery doesn't work with a large radius?
> -------------------------------------------------------
>
>                 Key: LUCENE-6780
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6780
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Michael McCandless
>         Attachments: LUCENE-6780.patch, LUCENE-6780.patch, LUCENE-6780.patch, 
> LUCENE-6780.patch, LUCENE-6780.patch
>
>
> I'm working on LUCENE-6698 but struggling with test failures ...
> Then I noticed that TestGeoPointQuery's test never tests on large distances, 
> so I modified the test to sometimes do so (like TestBKDTree) and hit test 
> failures.



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

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

Reply via email to