apache / apache/lucene

A few potential reproducibility issues [LUCENE-5896]

Open
#6,958 12 comments 0 reactions 0 assignees View on GitHub
affects-version:4.9 legacy-jira-fix-version:4.10 legacy-jira-fix-version:6.0 legacy-jira-priority:Major type:test
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

I realized that passing the same seeded random instance to LuceneTestCase# newIndewWriterConfig doesn't necessarily produce the same IWC and I found a bunch of issues in that class using global random rather than local random. Yet, I went over the file to spot others but we might need to think about a more automated way to spot those...

---
Migrated from [LUCENE-5896](https://issues.apache.org/jira/browse/LUCENE-5896) by Simon Willnauer (@s1monw), updated May 09 2016
Attachments: [LUCENE-5896.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-5896/LUCENE-5896.patch)

Contributor guide

Open the contributing guide

Research direction

Start by reading LuceneTestCase#newIndewWriterConfig and the attached LUCENE-5896.patch. Compare how the supplied seeded random instance and global random are used, then review the issue discussion for the identified cases; done means equivalent seeded inputs produce the same IWC without unintended global-random dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.