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

Correct path creation in getTrashRoot to handle root dir

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.8.0
    • 2.8.0, 3.0.0-alpha1
    • encryption
    • None
    • 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

        1. HDFS-9844.00.patch
          2 kB
          Zhe Zhang

        Issue Links

          Activity

            People

              zhz Zhe Zhang
              zhz Zhe Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: