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

Make getContentSummary() less expensive

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.9, 2.3.0
    • Fix Version/s: 0.23.10, 2.3.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When users call du or count DFS command, getContentSummary() method is called against namenode. If the directory has many directories and files, it could hold the namesystem lock for a long time. We've seen it taking over 20 seconds. Namenode should not allow regular users to cause extended locking.

        Attachments

        1. HDFS-4995.trunk1.patch
          28 kB
          Kihwal Lee
        2. HDFS-4995.trunk.patch
          28 kB
          Kihwal Lee
        3. HDFS-4995.trunk.3.patch
          25 kB
          Kihwal Lee
        4. HDFS-4995.trunk.2.patch
          29 kB
          Kihwal Lee
        5. HDFS-4995.branch-0.23.3.patch
          17 kB
          Kihwal Lee

          Issue Links

            Activity

              People

              • Assignee:
                kihwal Kihwal Lee
                Reporter:
                kihwal Kihwal Lee
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: