TestIndexWriterOutOfFileDescripters never reproduces [LUCENE-6273]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
This test doesn't ever reproduce from the random seed.
Maybe we should write it differently? We could use HandleLimitFS:
```Java
* `@param` delegate delegate filesystem to wrap.
* `@param` limit maximum number of open files.
*/
public HandleLimitFS(FileSystem delegate, int limit) {
```
---
Migrated from [LUCENE-6273](https://issues.apache.org/jira/browse/LUCENE-6273) by Robert Muir (@rmuir)
Contributor guide
Research direction
Locate the TestIndexWriterOutOfFileDescripters test and the HandleLimitFS class mentioned in the issue. Run the existing test with its current random-seed setup, then determine whether using HandleLimitFS makes the file-descriptor limit failure reproducible; done means the test reliably exercises the intended condition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100