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

(TWILL-223) Make FileContextLocationFactory UGI aware #47

Closed
wants to merge 1 commit into from

Conversation

chtyim
Copy link
Member

@chtyim chtyim commented Mar 28, 2017

  • Use different FileContext object based on the caller UGI
  • Allows sharing the same factory instance for different user

Copy link
Contributor

@albertshau albertshau left a comment

Choose a reason for hiding this comment

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

just one comment, otherwise lgtm

CommonConfigurationKeysPublic.FS_DEFAULT_NAME_DEFAULT);
throw new IllegalStateException("File system with URI '" + defaultURI + "' is not supported", cause);
}
throw new RuntimeException(cause);
Copy link
Contributor

Choose a reason for hiding this comment

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

at this point the cause should be a RuntimeException right? in which case we should just propagate it directly rather than wrapping it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, it can be Exception or RuntimeException. I can add a check to just throw the cause without wrapping if the type is RuntimeException

- Use different FileContext object based on the caller UGI
- Allows sharing the same factory instance for different user
@asfgit asfgit closed this in 2c42097 Mar 30, 2017
@chtyim chtyim deleted the feature/TWILL-223 branch April 4, 2017 09:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants