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

Make getContentSummary() less expensive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.9, 2.3.0
    • 0.23.10, 2.3.0
    • namenode
    • None
    • 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

              kihwal Kihwal Lee
              kihwal Kihwal Lee
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: