Skip to content

Small fixes from #7701#9128

Closed
Fokko wants to merge 1 commit intoapache:masterfrom
Fokko:fd-fix-small-issues
Closed

Small fixes from #7701#9128
Fokko wants to merge 1 commit intoapache:masterfrom
Fokko:fd-fix-small-issues

Conversation

@Fokko
Copy link
Copy Markdown
Contributor

@Fokko Fokko commented Jan 5, 2020

Fixes small issues from #7701

Fixes #XXXX.

Description

Fixes small issues with open resources, which we're not closed.


This PR has:

  • been self-reviewed.

try {
FileSystem fs = descriptorInfoDir.getFileSystem(conf);

try (FileSystem fs = descriptorInfoDir.getFileSystem(conf)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Fokko, would you elaborate more on this change? Seems like Path.getFileSystem() returns a cached instance of a FileSystem and I guess it might be better to leave the cached one rather than removing it from the cache?

@Fokko Fokko closed this Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants