Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3127

rm /user/<username>/.Trash/____ only moves it back to .Trash

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.16.2, 0.16.3, 0.17.0, 0.18.0
    • 0.18.0
    • fs
    • None
    • Reviewed

    Description

      In 0.15 or before, any dfs -rm call for files under Trash were deleted.
      From 0.16, it just renames it back to Trash.

      In Trash.java:moveToTrash()

      if (path.toString().startsWith(trash.toString()))
      

      seems like trash.toString() is fully qualified, and path.toString() is not.

      Attachments

        1. fixInTrashDeletion.patch
          2 kB
          Brice Arnould
        2. fixInTrashDeletion.patch
          2 kB
          Brice Arnould

        Activity

          People

            un_brice Brice Arnould
            knoguchi Koji Noguchi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: