[ https://issues.apache.org/jira/browse/TWILL-223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15945816#comment-15945816 ]
ASF GitHub Bot commented on TWILL-223: -------------------------------------- GitHub user chtyim opened a pull request: https://github.com/apache/twill/pull/47 (TWILL-223) Make FileContextLocationFactory UGI aware - Use different FileContext object based on the caller UGI - Allows sharing the same factory instance for different user You can merge this pull request into a Git repository by running: $ git pull https://github.com/chtyim/twill feature/TWILL-223 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/twill/pull/47.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #47 ---- commit 3472cf55c9a7de912997c4e8f567a1192f8f8823 Author: Terence Yim <cht...@apache.org> Date: 2017-03-28T19:53:43Z (TWILL-223) Make FileContextLocationFactory UGI aware - Use different FileContext object based on the caller UGI - Allows sharing the same factory instance for different user ---- > FileContextLocationFactory should use FileContext instance based on the > caller UGI > ---------------------------------------------------------------------------------- > > Key: TWILL-223 > URL: https://issues.apache.org/jira/browse/TWILL-223 > Project: Apache Twill > Issue Type: Bug > Reporter: Terence Yim > Assignee: Terence Yim > Fix For: 0.11.0 > > > The {{FileContextLocationFactory}} internally has a cached {{FileContext}} > object that was created when the factory was created. However, when the > {{getFileContext}} is called (directly or via one of those {{create}} > methods), the UGI might be different then the cached one. If the cached one > is returning, FS operations will be performed with the user who creates the > factory, not the one who calls the {{create}} method. -- This message was sent by Atlassian JIRA (v6.3.15#6346)