Uploaded image for project: 'Apache Twill'
  1. Apache Twill
  2. TWILL-223

FileContextLocationFactory should use FileContext instance based on the caller UGI

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chtyim Terence Yim
                Reporter:
                chtyim Terence Yim
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: