Lower default file handle limit in tests to more reasonable value [LUCENE-10221]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
Currently the HandleLimitFS limit is set to 2048, but this already higher than defaults on many operating systems.
Recently, @dweiss added an annotation (HandleLimitFS.MaxOpenHandles) that allows per-class overrides.
So maybe we can lower the default to 1024 and annotate the long-tail exceptional tests as a start?
---
Migrated from [LUCENE-10221](https://issues.apache.org/jira/browse/LUCENE-10221) by Robert Muir (@rmuir), updated Nov 05 2021
Contributor guide
Research direction
Start by locating HandleLimitFS and its MaxOpenHandles annotation in the test code, then identify tests that exceed the proposed default. Lower the default from 2048 to 1024 and annotate exceptional test classes as needed. Run the affected tests and verify that the test suite still passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100