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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.21.0
    • namenode
    • None
    • 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.1.patch
          14 kB
          Suresh Srinivas
        3. HDFS-173.2.patch
          17 kB
          Suresh Srinivas
        4. HDFS-173.3.patch
          17 kB
          Suresh Srinivas
        5. HDFS-173.4.patch
          17 kB
          Suresh Srinivas

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: