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

Statistic for list_located_status is incremented incorrectly by listStatusIterator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.3
    • 3.2.0, 3.0.4, 3.1.2
    • hdfs-client
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: