apache / apache/lucene

RandomGeoShapeRelationshipTest.testRandomContains() failure [LUCENE-7988]

Open
#9,036 0 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Major module:spatial3d type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Reproduces for me. From :

```
[junit4] Suite: org.apache.lucene.spatial3d.geom.RandomGeoShapeRelationshipTest
[junit4] 2> NOTE: reproduce with: ant test -Dtestcase=RandomGeoShapeRelationshipTest -Dtests.method=testRandomContains -Dtests.seed=B276D90A4C724311 -Dtests.multiplier=3 -Dtests.slow=true -Dtests.locale=no -Dtests.timezone=Europe/Oslo -Dtests.asserts=true -Dtests.file.encoding=UTF-8
[junit4] FAILURE 0.88s J0 | RandomGeoShapeRelationshipTest.testRandomContains <<<
[junit4] > Throwable #1: java.lang.AssertionError: geoAreaShape: GeoExactCircle: {planetmodel=PlanetModel.WGS84, center=[lat=0.02123571392201587, lon=2.320149787902387([X=-0.6817728874503795, Y=0.732782197038459, Z=0.021257843476414247])], radius=3.0750485329959063(176.1873027385607), accuracy=1.363030071996312E-4}
[junit4] > shape: GeoRectangle: {planetmodel=PlanetModel.WGS84, toplat=1.0536304186599388(60.36857615581647), bottomlat=-1.0245136525145786(-58.70030834261794), leftlon=-2.1970388932576568(-125.8810560097571), rightlon=0.4079910742650278(23.37616663439463)} expected:<0> but was:<2>
[junit4] > at __randomizedtesting.SeedInfo.seed([B276D90A4C724311:85901780E92DE45B]:0)
[junit4] > at org.apache.lucene.spatial3d.geom.RandomGeoShapeRelationshipTest.testRandomContains(RandomGeoShapeRelationshipTest.java:225)
[junit4] > at java.lang.Thread.run(Thread.java:748)
[junit4] 2> NOTE: test params are: codec=Lucene70, sim=RandomSimilarity(queryNorm=false): {}, locale=no, timezone=Europe/Oslo
[junit4] 2> NOTE: Linux 4.10.0-33-generic i386/Oracle Corporation 1.8.0_144 (32-bit)/cpus=8,threads=1,free=4893368,total=16252928
[junit4] 2> NOTE: All tests run in this JVM: [RandomGeoShapeRelationshipTest]
[junit4] Completed [9/15 (1!)] on J0 in 8.00s, 26 tests, 1 failure <<< FAILURES!
```

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

Contributor guide

Open the contributing guide

Research direction

Start by running the documented Ant command for RandomGeoShapeRelationshipTest.testRandomContains with seed B276D90A4C724311. Inspect the failure at RandomGeoShapeRelationshipTest.java:225 and the spatial3d geometry involved in the reported GeoExactCircle and GeoRectangle relationship. Done means the reproduced test passes without introducing other failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.