You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Kai Zheng (JIRA)" <ji...@apache.org> on 2016/10/14 00:41:20 UTC
[jira] [Moved] (HADOOP-13723) AliyunOSSInputStream#read() should
update read bytes stat correctly
[ https://issues.apache.org/jira/browse/HADOOP-13723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kai Zheng moved HDFS-11007 to HADOOP-13723:
-------------------------------------------
Target Version/s: 3.0.0-alpha2 (was: 3.0.0-alpha2)
Component/s: (was: tools)
tools
Key: HADOOP-13723 (was: HDFS-11007)
Project: Hadoop Common (was: Hadoop HDFS)
> AliyunOSSInputStream#read() should update read bytes stat correctly
> -------------------------------------------------------------------
>
> Key: HADOOP-13723
> URL: https://issues.apache.org/jira/browse/HADOOP-13723
> Project: Hadoop Common
> Issue Type: Bug
> Components: tools
> Reporter: Mingliang Liu
> Assignee: Mingliang Liu
> Attachments: HDFS-11007.000.patch
>
>
> {code}
> @Override
> public synchronized int read() throws IOException {
> ......
> if (statistics != null && byteRead >= 0) {
> statistics.incrementBytesRead(1);
> }
> return byteRead;
> }
> {code}
> I believe it should be {{statistics.incrementBytesRead(byteRead);}}?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org