Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

(TWILL-227) Disabling caching of FileSystem instance when getting delegation token #46

Closed
wants to merge 2 commits into from

Conversation

chtyim
Copy link
Member

@chtyim chtyim commented Mar 28, 2017

No description provided.

@chtyim
Copy link
Member Author

chtyim commented Mar 28, 2017

This replaces #45 due to accidentally deleting the branch.

…egation token

- Allows getting delegation token for different users without leaking
memory.
  - The FileSystem.get() by default will cache all FileSystem instances
until end of process.
Copy link
Contributor

@anew anew left a comment

Choose a reason for hiding this comment

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

Only one comment about the logging. Other than that LGTM

}
try (FileSystem fileSystem = getFileSystem(locationFactory)) {
if (fileSystem == null) {
LOG.warn("Unexpected: LocationFactory is not backed by FileContextLocationFactory");
Copy link
Contributor

Choose a reason for hiding this comment

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

seems that this message should be logged inside getFileSystem()

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated

@asfgit asfgit closed this in 4e1cae3 Mar 28, 2017
@chtyim chtyim deleted the feature/TWILL-227 branch March 28, 2017 23:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants