Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6891 Follow-on work for transparent data at rest encryption
  3. HDFS-9433

DFS getEZForPath API on a non-existent file should throw FileNotFoundException

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • encryption
    • None
    • Incompatible change, Reviewed
    • Unify the behavior of dfs.getEZForPath() API when getting a non-existent normal file and non-existent ezone file by throwing FileNotFoundException

    Description

      Presently dfs.getEZForPath() API is behaving differently for a non-existent normal file and non-existent ezone file:

      • If user pass a normal non-existent file then it will return null value. For example, Path("/nonexistentfile")
      • If user pass a non-existent file but which is under an existing encryption zone then it is returning the parent's encryption zone info. For example, Path("/ezone/nonexistentfile")

      Here the proposed idea is to unify the behavior by throwing FileNotFoundException. Please refer the discussion thread.

      Attachments

        1. HDFS-9433-00.patch
          5 kB
          Rakesh Radhakrishnan
        2. HDFS-9433-00.patch
          5 kB
          Rakesh Radhakrishnan

        Issue Links

          Activity

            People

              rakeshr Rakesh Radhakrishnan
              rakeshr Rakesh Radhakrishnan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: