You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@twill.apache.org by "Terence Yim (JIRA)" <ji...@apache.org> on 2017/03/30 08:17:41 UTC

[jira] [Resolved] (TWILL-223) FileContextLocationFactory should use FileContext instance based on the caller UGI

     [ https://issues.apache.org/jira/browse/TWILL-223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Terence Yim resolved TWILL-223.
-------------------------------
    Resolution: Fixed

> 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)