Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-173

Recursively deleting a directory with millions of files makes NameNode unresponsive for other commands until the deletion completes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.21.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Delete a directory with millions of files. This could take several minutes (observed 12 mins for 9 million files). While the operation is in progress FSNamesystem lock is held and the requests from clients are not handled until deletion completes.

        Attachments

        1. HDFS-173.patch
          16 kB
          Suresh Srinivas
        2. HDFS-173.4.patch
          17 kB
          Suresh Srinivas
        3. HDFS-173.3.patch
          17 kB
          Suresh Srinivas
        4. HDFS-173.2.patch
          17 kB
          Suresh Srinivas
        5. HDFS-173.1.patch
          14 kB
          Suresh Srinivas

          Issue Links

            Activity

              People

              • Assignee:
                sureshms Suresh Srinivas
                Reporter:
                sureshms Suresh Srinivas
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: