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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.21.0
    • fs
    • None
    • Incompatible change, Reviewed
    • 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-1.patch
          0.6 kB
          Boris Shkolnik
        2. HADOOP-6203-1.patch
          2 kB
          Boris Shkolnik
        3. HADOOP-6203.patch
          2 kB
          Boris Shkolnik
        4. HADOOP-6203.patch
          1 kB
          Boris Shkolnik
        5. c6203_20091116_0.20.patch
          2 kB
          Tsz-wo Sze

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: