apache / apache/lucene

TestGeoPointQuery.testEquals() failure [LUCENE-7172]

Open
#8,227 1 comment 0 reactions 0 assignees View on GitHub
affects-version:6.0 legacy-jira-priority:Major module:spatial type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

My Jenkins found a reproducing seed on branch_6_0 (reproduces for me at commit 48c80f91b8e5cd9b3a9b48e6184bd53e7619e7e3 ):

```
Checking out Revision 48c80f91b8e5cd9b3a9b48e6184bd53e7619e7e3 (refs/remotes/origin/branch_6_0)
[...]
[junit4] Suite: org.apache.lucene.spatial.geopoint.search.TestGeoPointQuery
[junit4] 2> NOTE: download the large Jenkins line-docs file by running 'ant get-jenkins-line-docs' in the lucene directory.
[junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestGeoPointQuery -Dtests.method=testEquals -Dtests.seed=D800ACFE15AF78C3 -Dtests.slow=true -Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt -Dtests.locale=fr -Dtests.timezone=Antarctica/McMurdo -Dtests.asserts=true -Dtests.file.encoding=UTF-8
[junit4] ERROR 0.04s J0 | TestGeoPointQuery.testEquals <<<
[junit4] > Throwable #1: java.lang.IllegalArgumentException: radiusMeters 10000.0 exceeds maxRadius [7173.540691622848] at location [89.96774344373529 30.77343747893633]
[junit4] > at __randomizedtesting.SeedInfo.seed([D800ACFE15AF78C3:DC6FFF65DB9628C1]:0)
[junit4] > at org.apache.lucene.spatial.geopoint.search.GeoPointDistanceQuery.(GeoPointDistanceQuery.java:78)
[junit4] > at org.apache.lucene.spatial.geopoint.search.GeoPointDistanceQuery.(GeoPointDistanceQuery.java:66)
[junit4] > at org.apache.lucene.spatial.geopoint.search.TestGeoPointQuery.newDistanceQuery(TestGeoPointQuery.java:77)
[junit4] > at org.apache.lucene.spatial.util.BaseGeoPointTestCase.testEquals(BaseGeoPointTestCase.java:863)
[junit4] > at java.lang.Thread.run(Thread.java:745)
[junit4] IGNOR/A 0.00s J0 | TestGeoPointQuery.testRandomBig
[junit4] > Assumption #1: 'nightly' test group is disabled (@Nightly())
[junit4] 2> NOTE: test params are: codec=CheapBastard, sim=ClassicSimilarity, locale=fr, timezone=Antarctica/McMurdo
[junit4] 2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation 1.8.0_45 (64-bit)/cpus=16,threads=1,free=488354960,total=522190848
[junit4] 2> NOTE: All tests run in this JVM: [TestGeoPointQuery]
[junit4] Completed [2/2 (1!)] on J0 in 5.19s, 28 tests, 1 error, 1 skipped <<< FAILURES!
```

---
Migrated from [LUCENE-7172](https://issues.apache.org/jira/browse/LUCENE-7172) by Steven Rowe (@sarowe)

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the reported ant test command and seed, then inspect GeoPointDistanceQuery.java at line 78 and TestGeoPointQuery.java at line 77, where the exception originates. Read BaseGeoPointTestCase.testEquals around line 863 to understand the expected equality cases. Done means the reproduced TestGeoPointQuery.testEquals run completes without the radius exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.