Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LUCENE-9423: Handle exception in NIOFSDirectory#openInput #1658

Merged
merged 1 commit into from
Jul 9, 2020

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Jul 7, 2020

If we fail to get the size of a file in the constructor of NIOFSIndexInput, then we will leak a FileChannel opened in NIOFSDirectory#openInput.

@dnhatn
Copy link
Member Author

dnhatn commented Jul 9, 2020

@jpountz @s1monw Thanks for reviewing.

@dnhatn dnhatn merged commit 20ec57a into apache:master Jul 9, 2020
@dnhatn dnhatn deleted the fix-leak-openinput branch July 9, 2020 14:43
asfgit pushed a commit that referenced this pull request Jul 9, 2020
If we fail to get the size of a file in the constructor of 
NIOFSIndexInput, then we will leak a FileChannel opened in
NIOFSDirectory#openInput.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants