apache / apache/lucene

Reproducible failure in TestXYLineShapeDVQueries.testRandomBig

Open
#13,307 0 comments 0 reactions 0 assignees View on GitHub
type:test
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

### Description

```
org.apache.lucene.document.TestXYLineShapeDVQueries > testRandomBig FAILED
java.lang.AssertionError: wrong hit (first of possibly more):

FAIL: id=33539 should not match but did
relation=DISJOINT
query=XYShapeDocValuesQuery: field=shape:[XYRectangle(x=-3.4028218E38 TO 3.4028235E38 y=1.0415865E-24 TO 6.5907573E37),] docID=33539
shape=XYLINE([-3.4028227E38, 8.112964E31][-3.402823E38, 7.0260327E31][-3.4028233E38, 4.056482E31][-3.4028235E38, -2.2549749E16][-3.4028233E38, -4.056482E31][-3.402823E38, -7.0260327E31][-3.4028227E38, -8.112964E31][-3.4028222E38, -7.0260327E31][-3.402822E38, -4.056482E31][-3.4028218E38, -2.6787188E15][-3.402822E38, 4.056482E31][-3.4028222E38, 7.0260327E31])
deleted?=false rect=Rectangle(lat=1.0415864984896306E-24 TO 6.590757338321088E37 lon=-3.4028218437925203E38 TO 3.4028234663852886E38)
at __randomizedtesting.SeedInfo.seed([F3B2001FA41C470A:74E57D9035453B8A]:0)
at org.junit.Assert.fail(Assert.java:89)
at org.apache.lucene.document.BaseSpatialTestCase.verifyRandomBBoxQueries(BaseSpatialTestCase.java:385)
at org.apache.lucene.document.BaseSpatialTestCase.verifyRandomQueries(BaseSpatialTestCase.java:284)
at org.apache.lucene.document.BaseSpatialTestCase.verify(BaseSpatialTestCase.java:253)
at org.apache.lucene.document.BaseSpatialTestCase.doTestRandom(BaseSpatialTestCase.java:136)
at org.apache.lucene.document.BaseSpatialTestCase.testRandomBig(BaseSpatialTestCase.java:113)
```

```
./gradlew test --tests TestXYLineShapeDVQueries.testRandomBig -Dtests.seed=F3B2001FA41C470A -Dtests.nightly=true
```

### Gradle command to reproduce

_No response_

Contributor guide

Open the contributing guide

Research direction

Run ./gradlew test --tests TestXYLineShapeDVQueries.testRandomBig with the recorded seed, then inspect TestXYLineShapeDVQueries.testRandomBig and BaseSpatialTestCase.verifyRandomBBoxQueries. Trace why the DISJOINT query reports docID 33539 as a hit; done means the seeded test no longer reports the shown false match.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.