Random Test Failure org.apache.lucene.index.TestIndexWriter.testAddIndexesWithThreads (from TestIndexWriter) [LUCENE-2623]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
Error Message
expected:<3160> but was:<2752>
Stacktrace
junit.framework.AssertionFailedError: expected:<3160> but was:<2752>
at
org.apache.lucene.index.TestIndexWriter.testAddIndexesWithThreads(TestIndexWriter.java:3794)
at org.apache.lucene.util.LuceneTestCase.runBare(LuceneTestCase.java:380)
at org.apache.lucene.util.LuceneTestCase.run(LuceneTestCase.java:372)
Standard Output
java.lang.AssertionError: IndexFileDeleter doesn't know about file _8h.cfs
at org.apache.lucene.index.IndexWriter.filesExist(IndexWriter.java:4284)
at org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:4331)
at org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:3088)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3161)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3132)
at
org.apache.lucene.index.TestIndexWriter$CommitAndAddIndexes.doBody(TestIndexWriter.java:3774)
at
org.apache.lucene.index.TestIndexWriter$RunAddIndexesThreads$1.run(TestIndexWriter.java:3710)
NOTE: random codec of testcase 'testAddIndexesWithThreads' was: MockSep
NOTE: random locale of testcase 'testAddIndexesWithThreads' was: ms_MY
NOTE: random timezone of testcase 'testAddIndexesWithThreads' was:
Asia/Aqtau
NOTE: random seed of testcase 'testAddIndexesWithThreads' was:
-5272061551011630291
---
Migrated from [LUCENE-2623](https://issues.apache.org/jira/browse/LUCENE-2623) by Mark Miller (@markrmiller), updated Aug 26 2010
Contributor guide
Research direction
Start by running org.apache.lucene.index.TestIndexWriter.testAddIndexesWithThreads and reading TestIndexWriter.java around lines 3710-3794. Trace the concurrent commit path through IndexWriter.filesExist, startCommit, and prepareCommit, then use the reported MockSep seed to investigate; done means the test no longer produces the missing-file assertion or count mismatch.
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
- Needs clarification
- Newbie friendliness
- 30/100