Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13553 RBF: Support global quota
  3. HDFS-13380

RBF: mv/rm fail after the directory exceeded the quota limit

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10.0, 3.2.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      It's always fail when I try to mv/rm a directory which have exceeded the quota limit.

      [hadp@hadoop]$ hdfs dfsrouteradmin -ls
      Mount Table Entries:
      Source Destinations Owner Group Mode Quota/Usage
      /ns10t ns10->/ns10t hadp hadp rwxr-xr-x [NsQuota: 1200/1201, SsQuota: -/-]
      
      [hadp@hadoop]$ hdfs dfs -rm hdfs://ns-fed/ns10t/ns1mountpoint/aaaaaaaaaa.99
      rm: Failed to move to trash: hdfs://ns-fed/ns10t/ns1mountpoint/aaaaaaaaaa.99: The NameSpace quota (directories and files) is exceeded: quota=1200 file count=1201
      
      [hadp@hadoop]$ hdfs dfs -rm -skipTrash hdfs://ns-fed/ns10t/ns1mountpoint/aaaaaaaaaa.99
      rm: The NameSpace quota (directories and files) is exceeded: quota=1200 file count=1201
      

      I think we should add a parameter for the method getLocationsForPath, to determine if we need to perform quota verification on the operation. For example mv src directory parameter and rm directory parameter.

        Attachments

        1. HDFS-13380.001.patch
          9 kB
          Yiqun Lin
        2. HDFS-13380.002.patch
          5 kB
          Yiqun Lin

          Issue Links

            Activity

              People

              • Assignee:
                linyiqun Yiqun Lin
                Reporter:
                wuweiwei Weiwei Wu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: