Cleanup some mockdirectorywrapper checks [LUCENE-6604]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
For example, openInput should check for "is file still being written" before it tries to actually open it.
This gives a better exception in case something screwy is happening.
---
Migrated from [LUCENE-6604](https://issues.apache.org/jira/browse/LUCENE-6604) by Robert Muir (@rmuir)
Attachments: [LUCENE-6604.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-6604/LUCENE-6604.patch)
Contributor guide
Research direction
Locate MockDirectoryWrapper and its openInput entry point, then review the archived LUCENE-6604.patch for the intended cleanup and check ordering. Done means the relevant checks produce the better exception before the input is opened, with the existing tests still passing.
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
- Mostly clear
- Newbie friendliness
- 35/100