apache / apache/lucene

MockDirectoryWrapper should throw 'too many open files' if too many are open [LUCENE-3195]

Open
#4,268 7 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Major type:test
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

regardless of operating system.

We should take a good default value, like the lowest one we consider 'reasonable' macosX? and it should throw exception on openInput if openFiles hashmap is too large.

---
Migrated from [LUCENE-3195](https://issues.apache.org/jira/browse/LUCENE-3195) by Robert Muir (@rmuir)

Contributor guide

Open the contributing guide

Research direction

Locate MockDirectoryWrapper and inspect openInput together with the openFiles hashmap. Determine a reasonable platform-independent open-file limit, then verify that opening another input past that limit reports a too-many-open-files exception regardless of operating system.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.