Skip to content

[8.6] Fix unclosed directory stream in ClassReaders #92890#92897

Closed
pgomulka wants to merge 1 commit intoelastic:8.6from
pgomulka:8.6_plugins_reader_leak
Closed

[8.6] Fix unclosed directory stream in ClassReaders #92890#92897
pgomulka wants to merge 1 commit intoelastic:8.6from
pgomulka:8.6_plugins_reader_leak

Conversation

@pgomulka
Copy link
Copy Markdown
Contributor

Using Files.walk requires closing the returned stream. This commit fixes a helper method in ClassReaders to use try-with-resources with the returned stream.
backports #92890
closes #92866

…xes a helper method in ClassReaders to use try-with-resources with the returned stream.

closes elastic#92866
@pgomulka pgomulka self-assigned this Jan 13, 2023
pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Jan 13, 2023
…stic#92897

Using Files.walk requires closing the returned stream. This commit fixes a helper method in ClassReaders to use try-with-resources with the returned stream.
backports elastic#92890
closes elastic#92866
@pgomulka
Copy link
Copy Markdown
Contributor Author

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.

1 participant