Hadoop Common
  1. Hadoop Common
  2. HADOOP-6203

Improve error message when moving to trash fails due to quota issue

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Component/s: fs
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Improved error message suggests using -skpTrash option when hdfs -rm fails to move to trash because of quota.

      Description

      HADOOP-6080 provided an option for deleting files even when overquota, but the error message that's returned in this situation is unhelpful and doesn't suggest skipTrash as a remediation:

      $ hdfs -rmr /foo/bar/bat/boo
      
      rmr: Failed to move to trash:
      hdfs://cluster/foo/bar/bat/boo

      In this situation, the error message should say there was a quote problem and suggest -skipTrash.

      1. c6203_20091116_0.20.patch
        2 kB
        Tsz Wo Nicholas Sze
      2. HADOOP-6203.patch
        1 kB
        Boris Shkolnik
      3. HADOOP-6203.patch
        2 kB
        Boris Shkolnik
      4. HADOOP-6203-1.patch
        2 kB
        Boris Shkolnik
      5. HADOOP-6203-1.patch
        0.6 kB
        Boris Shkolnik

        Activity

        Jakob Homan created issue -
        Boris Shkolnik made changes -
        Field Original Value New Value
        Attachment HADOOP-6203.patch [ 12418013 ]
        Boris Shkolnik made changes -
        Attachment HADOOP-6203.patch [ 12418013 ]
        Boris Shkolnik made changes -
        Attachment HADOOP-6203.patch [ 12418014 ]
        Boris Shkolnik made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Boris Shkolnik made changes -
        Attachment HADOOP-6203.patch [ 12418027 ]
        Boris Shkolnik made changes -
        Assignee Boris Shkolnik [ boryas ]
        Boris Shkolnik made changes -
        Attachment HADOOP-6203-1.patch [ 12418523 ]
        Boris Shkolnik made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Boris Shkolnik made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Boris Shkolnik made changes -
        Attachment HADOOP-6203-1.patch [ 12418524 ]
        Boris Shkolnik made changes -
        Attachment HADOOP-6203-1.patch [ 12418524 ]
        Boris Shkolnik made changes -
        Attachment HADOOP-6203-1.patch [ 12418525 ]
        Boris Shkolnik made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Boris Shkolnik made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Boris Shkolnik made changes -
        Attachment HADOOP-6229-2.patch [ 12418559 ]
        Boris Shkolnik made changes -
        Attachment HADOOP-6229-2.patch [ 12418559 ]
        Suresh Srinivas made changes -
        Hadoop Flags [Incompatible change, Reviewed]
        Fix Version/s 0.21.0 [ 12313563 ]
        Suresh Srinivas made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Suresh Srinivas made changes -
        Release Note When FSShell rm/rmr file deletion fails to move to the deleted files to Trash, the error message indicates that the delete failed due to exceeding Trash quota. The error message also suggest using -skipTrash to work around the problem.
        Robert Chansler made changes -
        Release Note When FSShell rm/rmr file deletion fails to move to the deleted files to Trash, the error message indicates that the delete failed due to exceeding Trash quota. The error message also suggest using -skipTrash to work around the problem. Error message suggests using -skpTrash option when hdfs -rm fails to move to trash because of quota.
        Tsz Wo Nicholas Sze made changes -
        Attachment c6203_20091116_0.20.patch [ 12425243 ]
        Robert Chansler made changes -
        Release Note Error message suggests using -skpTrash option when hdfs -rm fails to move to trash because of quota. Improved error message suggests using -skpTrash option when hdfs -rm fails to move to trash because of quota.
        Tom White made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Boris Shkolnik
            Reporter:
            Jakob Homan
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development