Reproducible failure in TestGeo3DPoint.testRandomBig
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
### Description
```
org.apache.lucene.spatial3d.TestGeo3DPoint > testRandomBig FAILED
java.lang.AssertionError: FAIL: id=23785 should not have matched but did
shape=GeoStandardPath: {planetmodel=PlanetModel.WGS84, width=2.5638182999069305E-5(0.0014689596802307306), points={[[lat=2.4457272005608357E-47, lon=0.0([X=1.0011188539901221, Y=0.0, Z=2.4484636121979335E-47])], [lat=-1.0718146506637272, lon=0.017453291479645996([X=0.47775442364187093, Y=0.008339233987253964, Z=-0.8767777439379159])], [lat=1.2798499685240037, lon=-0.4737449978411123([X=0.2547649811064312, Y=-0.13061449414092574, Z=0.9560925461700265])]]}}
bounds=XYZBounds: [xmin=0.25474324433710577 xmax=1.0011188549901222 ymin=-0.1802138209379591 ymax=0.008364853863677697 zmin=-0.8767899152769958 zmax=0.9561195469506941]
world bounds=( minX=-1.0011188539901221 maxX=1.0011188539901221 minY=-1.0011188539901221 maxY=1.0011188539901221 minZ=-0.997762292019756 maxZ=0.997762292019756
quantized point=[X=1.001118853604479, Y=-1.9836761499747446E-5, Z=2.3309121299774915E-10] within shape? false within bounds? true
unquantized point=[lat=2.4457272005608357E-47, lon=-1.9814467377547217E-5([X=1.001118853793596, Y=-1.983663687213671E-5, Z=2.4484636121979335E-47])] within shape? true within bounds? true
docID=23785 deleted?=false
query=PointInGeo3DShapeQuery: field=point: Shape: GeoStandardPath: {planetmodel=PlanetModel.WGS84, width=2.5638182999069305E-5(0.0014689596802307306), points={[[lat=2.4457272005608357E-47, lon=0.0([X=1.0011188539901221, Y=0.0, Z=2.4484636121979335E-47])], [lat=-1.0718146506637272, lon=0.017453291479645996([X=0.47775442364187093, Y=0.008339233987253964, Z=-0.8767777439379159])], [lat=1.2798499685240037, lon=-0.4737449978411123([X=0.2547649811064312, Y=-0.13061449414092574, Z=0.9560925461700265])]]}}
explanation:
target is in leaf _0(10.0.0):C145628/1423:[diagnostics={os=Mac OS X, java.vendor=Oracle Corporation, java.runtime.version=17.0.7+8-LTS-224, timestamp=1706584548568, source=flush, lucene.version=10.0.0, os.version=13.6, os.arch=x86_64}]:[attributes={Lucene90StoredFieldsFormat.mode=BEST_SPEED}]:delGen=1 :id=df3rpl1vhr0vzenewjvq2zj8r of full reader StandardDirectoryReader(segments:3:nrt _0(10.0.0):C145628/1423:[diagnostics={os=Mac OS X, java.vendor=Oracle Corporation, java.runtime.version=17.0.7+8-LTS-224, timestamp=1706584548568, source=flush, lucene.version=10.0.0, os.version=13.6, os.arch=x86_64}]:[attributes={Lucene90StoredFieldsFormat.mode=BEST_SPEED}]:delGen=1 :id=df3rpl1vhr0vzenewjvq2zj8r)
full BKD path to target doc:
Cell(x=-1.0011188539901221 TO 1.0011188539901221 y=-1.0011188539901221 TO 1.0011188539901221 z=-0.9977622923536127 TO 0.9977622923536126); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true
Cell(x=0.047844370442552187 TO 1.0011188539901221 y=-1.0011188539901221 TO 1.0011188539901221 z=-0.9977622923536127 TO 0.9977622923536126); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true
Cell(x=0.047844370442552187 TO 1.0011188539901221 y=-1.0011188539901221 TO 4.661824259954982E-10 z=-0.9977622923536127 TO 0.9977622923536126); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true
Cell(x=0.047844370442552187 TO 1.0011188539901221 y=-1.0011188539901221 TO 4.661824259954982E-10 z=-0.9977622923536127 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true
Cell(x=0.047844370442552187 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=-0.9977622923536127 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true
Cell(x=0.047844370442552187 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=-0.5035355968293294 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true
Cell(x=1.0011187391566934 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=-0.5035355968293294 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true
Cell(x=1.0011187391566934 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=-0.5035355968293294 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true
Cell(x=1.0011187391566934 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=-0.5035355968293294 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true
Cell(x=1.0011187391566934 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=0.0 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true
Cell(x=1.0011188533713877 TO 1.0011188539901221 y=-1.9836994590960444E-5 TO 4.661824259954982E-10 z=0.0 TO 4.661824259954982E-10); Shape relationship = CONTAINS; Quantized point within cell = true; Unquantized point within cell = true
on cell Cell(x=-1.0011188539901221 TO 1.0011188539901221 y=-1.0011188539901221 TO 1.0011188539901221 z=-0.9977622923536127 TO 0.9977622923536126); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_CROSSES_QUERY
on cell Cell(x=0.047844370442552187 TO 1.0011188539901221 y=-1.0011188539901221 TO 1.0011188539901221 z=-0.9977622923536127 TO 0.9977622923536126); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_CROSSES_QUERY
on cell Cell(x=0.047844370442552187 TO 1.0011188539901221 y=-1.0011188539901221 TO 4.661824259954982E-10 z=-0.9977622923536127 TO 0.9977622923536126); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_CROSSES_QUERY
on cell Cell(x=0.047844370442552187 TO 1.0011188539901221 y=-1.0011188539901221 TO 4.661824259954982E-10 z=-0.9977622923536127 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_CROSSES_QUERY
on cell Cell(x=0.047844370442552187 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=-0.9977622923536127 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_CROSSES_QUERY
on cell Cell(x=0.047844370442552187 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=-0.5035355968293294 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_CROSSES_QUERY
on cell Cell(x=1.0011187391566934 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=-0.5035355968293294 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_CROSSES_QUERY
on cell Cell(x=1.0011187391566934 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=-0.5035355968293294 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_CROSSES_QUERY
on cell Cell(x=1.0011187391566934 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=-0.5035355968293294 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_CROSSES_QUERY
on cell Cell(x=1.0011187391566934 TO 1.0011188539901221 y=-0.08227179995049738 TO 4.661824259954982E-10 z=0.0 TO 4.661824259954982E-10); Shape relationship = OVERLAPS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_CROSSES_QUERY
on cell Cell(x=1.0011188533713877 TO 1.0011188539901221 y=-1.9836994590960444E-5 TO 4.661824259954982E-10 z=0.0 TO 4.661824259954982E-10); Shape relationship = CONTAINS; Quantized point within cell = true; Unquantized point within cell = true, wrapped visitor returned CELL_INSIDE_QUERY
leaf visit docID=23785
at __randomizedtesting.SeedInfo.seed([9837F8FB018D1EF7:1F60857490D46277]:0)
at junit@4.13.1/org.junit.Assert.fail(Assert.java:89)
at org.apache.lucene.spatial3d.TestGeo3DPoint.verify(TestGeo3DPoint.java:1116)
at org.apache.lucene.spatial3d.TestGeo3DPoint.doTestRandom(TestGeo3DPoint.java:693)
at org.apache.lucene.spatial3d.TestGeo3DPoint.testRandomBig(TestGeo3DPoint.java:597)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
```
### Gradle command to reproduce
./gradlew test --tests TestGeo3DPoint.testRandomBig -Dtests.seed=9837F8FB018D1EF7 -Dtests.nightly=true -Dtests.locale=lrc-IQ -Dtests.timezone=Asia/Pontianak -Dtests.asserts=true -Dtests.file.encoding=UTF-8
Contributor guide
Research direction
Run the provided Gradle command for TestGeo3DPoint.testRandomBig with the recorded seed, then inspect TestGeo3DPoint.verify at line 1116 and the testRandomBig path at line 597. Compare the quantized and unquantized point results in the failure output; done means the reproducible assertion no longer occurs and the targeted test passes.
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
- Needs clarification
- Newbie friendliness
- 35/100