apache / apache/lucene

Reproducible failure in TestRandomSpatialOpFuzzyPrefixTree50.testContains

Open
#13,305 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.spatial.prefix.TestRandomSpatialOpFuzzyPrefixTree50 > testContains {seed=[D8D9377B6829FC6:8722AB73973A7961]} FAILED
java.lang.AssertionError: Should have matched I#1:ShapePair(Rect(minX=169.0,maxX=180.0,minY=-90.0,maxY=90.0) , Rect(minX=-180.0,maxX=-136.0,minY=6.0,maxY=27.0)) Q:Rect(minX=-180.0,maxX=177.0,minY=14.0,maxY=23.0)
at __randomizedtesting.SeedInfo.seed([D8D9377B6829FC6:8722AB73973A7961]:0)
at junit@4.13.1/org.junit.Assert.fail(Assert.java:89)
at org.apache.lucene.spatial.prefix.TestRandomSpatialOpFuzzyPrefixTree.fail(TestRandomSpatialOpFuzzyPrefixTree.java:450)
at org.apache.lucene.spatial.prefix.TestRandomSpatialOpFuzzyPrefixTree.doTest(TestRandomSpatialOpFuzzyPrefixTree.java:432)
at org.apache.lucene.spatial.prefix.TestRandomSpatialOpFuzzyPrefixTree.testContains(TestRandomSpatialOpFuzzyPrefixTree.java:150)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
```

```
./gradlew test --tests TestRandomSpatialOpFuzzyPrefixTree50.testContains -Dtests.seed=D8D9377B6829FC6 -Dtests.nightly=true
```

### Gradle command to reproduce

_No response_

Contributor guide

Open the contributing guide

Research direction

Run the supplied Gradle command with the recorded seed and nightly flag to confirm the failure in TestRandomSpatialOpFuzzyPrefixTree50.testContains. Start with the failing test and the doTest and fail locations shown in TestRandomSpatialOpFuzzyPrefixTree, then trace the spatial operation involved. Done means the seeded test passes without weakening its assertions.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.