Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-8787

GetHDFS hdfs.exists() call not wrapped in UGI.doAs()

    XMLWordPrintableJSON

    Details

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

      Description

      In GetHDFS.performListing() before listing the files in the directory, it is checked if the directory actually exists.

      However, the hdfs.exists(directoryPath) call is not wrapped in UGI.doAs(). HDFS operations should be wrapped in UGI.doAs() just like inĀ NIFI-4323.

      Also, it is important to call getUGI() before FileSystem operations because that is where relogin and error handling is (like NIFI-7948).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pgyori Peter Gyori
                Reporter:
                pgyori Peter Gyori
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m