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

DFS Trash feature bugs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.13.1
    • 0.14.0
    • None
    • None

    Description

      In testing the DFS Trash feature, I've run across a couple of bugs.

      1) Attempting to remove the same file fails when attempted within the same fs.trash.interval:
      % bin/hadoop dfs -put file /file
      % bin/hadoop dfs -rm /file
      Moved to trash: /file
      % bin/hadoop dfs -put file /file
      % bin/hadoop dfs -rm /file
      rm: Failed to move to trash: /file

      2) Removing a file within a directory, followed by removing the directory creates a bizzare hierarchy within /Trash:
      % bin/hadoop dfs -mkdir /dir
      % bin/hadoop dfs -put file /dir/file
      % bin/hadoop dfs -rm /dir/file
      Moved to trash: /dir/file
      % bin/hadoop dfs -rmr /dir
      Moved to trash: /dir
      % bin/hadoop dfs -lsr /Trash
      /Trash/Current <dir>
      /Trash/Current/dir <dir>
      /Trash/Current/dir/dir <dir> <-- This is weird; potentially related to a rename case not fixed by HADOOP-1623 ???
      /Trash/Current/dir/file <r 3> 10

      Attachments

        1. Trash3.patch
          9 kB
          Dhruba Borthakur

        Issue Links

          Activity

            People

              dhruba Dhruba Borthakur
              nidaley Nigel Daley
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: