Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-2938

Recursive delete of a large directory makes namenode unresponsive

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.23.2
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When deleting a large directory with millions of files, namenode holding FSNamesystem lock will make it unresponsive for other request. In this scenario HDFS-173 added a mechanism to delete blocks in smaller chunks holding the locks. With new read/write lock changes, the mechanism from HDFS-173 is lost. Need to resurrect the mechanism back. Also a good unit test/update to existing unit test is needed to catch future errors with this functionality.

      1. HDFS-2938.patch
        3 kB
        Hari Mankude
      2. HDFS-2938.patch
        3 kB
        Hari Mankude

        Issue Links

          Activity

          Suresh Srinivas created issue -
          Suresh Srinivas made changes -
          Field Original Value New Value
          Target Version/s 0.23.2 [ 12319852 ]
          Suresh Srinivas made changes -
          Link This issue is related to HDFS-173 [ HDFS-173 ]
          Hari Mankude made changes -
          Assignee Suresh Srinivas [ sureshms ] Hari Mankude [ harip ]
          Hari Mankude made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s 0.24.0 [ 12317653 ]
          Fix Version/s 0.23.1 [ 12318885 ]
          Hari Mankude made changes -
          Attachment HDFS-2938.patch [ 12514671 ]
          Harsh J made changes -
          Fix Version/s 0.24.0 [ 12317653 ]
          Fix Version/s 0.23.1 [ 12318885 ]
          Affects Version/s 0.24.0 [ 12317653 ]
          Affects Version/s 0.23.1 [ 12318885 ]
          Target Version/s 0.23.2 [ 12319852 ] 0.24.0, 0.23.2 [ 12317653, 12319852 ]
          Hari Mankude made changes -
          Attachment HDFS-2938.patch [ 12514694 ]
          Suresh Srinivas made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Target Version/s 0.23.2, 0.24.0 [ 12319852, 12317653 ] 0.24.0, 0.23.2 [ 12317653, 12319852 ]
          Resolution Fixed [ 1 ]
          Eli Collins made changes -
          Fix Version/s 0.23.2 [ 12319852 ]
          Target Version/s 0.24.0, 0.23.2 [ 12317653, 12319852 ]

            People

            • Assignee:
              Hari Mankude
              Reporter:
              Suresh Srinivas
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development