Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9844

Correct path creation in getTrashRoot to handle root dir

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: encryption
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

            if ((ez != null)) {
              return this.makeQualified(
                  new Path(ez.getPath() + "/" + FileSystem.TRASH_PREFIX +
                      dfs.ugi.getShortUserName()));
      

      This doesn't handle root dir correctly. The unit test testRootDirEZTrash in the attached patch can reproduce the error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zhz Zhe Zhang
                Reporter:
                zhz Zhe Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: