You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Gabor Bota (JIRA)" <ji...@apache.org> on 2018/08/14 12:44:00 UTC

[jira] [Commented] (HDFS-13747) Statistic for list_located_status is incremented incorrectly by listStatusIterator

    [ https://issues.apache.org/jira/browse/HDFS-13747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16579748#comment-16579748 ] 

Gabor Bota commented on HDFS-13747:
-----------------------------------

Thanks for the patch [~amihalyi]!
The patch looks good - just a little nitpick: you've removed some tabs from line 726 which was not necessary, otherwise +1.

> Statistic for list_located_status is incremented incorrectly by listStatusIterator
> ----------------------------------------------------------------------------------
>
>                 Key: HDFS-13747
>                 URL: https://issues.apache.org/jira/browse/HDFS-13747
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 3.0.3
>            Reporter: Todd Lipcon
>            Assignee: Antal Mihalyi
>            Priority: Minor
>              Labels: newbie
>         Attachments: HDFS-13747.001.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org