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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: 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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: