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

Statistic for list_located_status is incremented incorrectly by listStatusIterator

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.2.0, 3.0.4, 3.1.2
    • Component/s: hdfs-client
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      The DirListingIterator constructor calls storageStatistics.incrementOpCounter(OpType.LIST_LOCATED_STATUS) unconditionally even if 'needLocation' is false. It seems that if needLocation is false, it should increment the LIST_STATUS counter instead.

        Attachments

        1. HDFS-13747.002.patch
          2 kB
          Antal Mihalyi
        2. HDFS-13747.001.patch
          3 kB
          Antal Mihalyi

          Activity

            People

            • Assignee:
              amihalyi Antal Mihalyi
              Reporter:
              tlipcon Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: