apache / apache/lucene

Reproducible assertion failure in o.a.l.luke.models.documents.TestDocumentsImpl.testNextTermDoc [LUCENE-10445]

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

Description

Command

```Java
gradlew :lucene:luke:test --tests "org.apache.lucene.luke.models.documents.TestDocumentsImpl.testNextTermDoc" -Ptests.seed=64C33B756A050564 -Ptests.multiplier=2 -Ptests.nightly=true
```

Stacktrace

```Java
org.apache.lucene.luke.models.documents.TestDocumentsImpl > testNextTermDoc FAILED
java.lang.AssertionError: expected:<4> but was:<2>
at __randomizedtesting.SeedInfo.seed([64C33B756A050564:6EFB0CF0167683A3]:0)
at junit@4.13.1/org.junit.Assert.fail(Assert.java:89)
at junit@4.13.1/org.junit.Assert.failNotEquals(Assert.java:835)
at junit@4.13.1/org.junit.Assert.assertEquals(Assert.java:647)
at junit@4.13.1/org.junit.Assert.assertEquals(Assert.java:633)
at org.apache.lucene.luke.models.documents.TestDocumentsImpl.testNextTermDoc(TestDocumentsImpl.java:207)
```

---
Migrated from [LUCENE-10445](https://issues.apache.org/jira/browse/LUCENE-10445) by Tomoko Uchida (@mocobeta)

Contributor guide

Open the contributing guide

Research direction

Run the Gradle command from the issue with seed 64C33B756A050564 and inspect org.apache.lucene.luke.models.documents.TestDocumentsImpl.testNextTermDoc at line 207. Trace the reproducible expected-versus-actual assertion failure and update the relevant implementation or test so the command passes with the reported seed.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.