apache / apache/lucene

Resource Leak due to Files.list [LUCENE-10144]

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

Description

See

Files.list will open dir and we should close it.

---
Migrated from [LUCENE-10144](https://issues.apache.org/jira/browse/LUCENE-10144) by lujie, updated Oct 06 2021
Pull requests: https://github.com/apache/lucene/pull/354

Contributor guide

Open the contributing guide

Research direction

Open buildSrc/src/main/java/org/apache/lucene/gradle/datasets/ExtractReuters.java at line 48 and inspect the Files.list call and its surrounding resource handling. Done means the directory opened there is closed while Reuters extraction continues to work as before.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.