hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tao Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Work stopped] (HDFS-11719) Arrays.fill() wrong index in BlockSender.readChecksum() exception handling
Date Fri, 12 May 2017 23:46:04 GMT

     [ https://issues.apache.org/jira/browse/HDFS-11719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Work on HDFS-11719 stopped by Tao Zhang.
----------------------------------------
> Arrays.fill() wrong index in BlockSender.readChecksum() exception handling
> --------------------------------------------------------------------------
>
>                 Key: HDFS-11719
>                 URL: https://issues.apache.org/jira/browse/HDFS-11719
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode
>            Reporter: Tao Zhang
>            Assignee: Tao Zhang
>
> In BlockSender.readChecksum() exception handling part:
> Arrays.fill(buf, checksumOffset, checksumLen, (byte) 0);
> Actually the paramters should be: Arrays.fill(buf, <startIndex>, <endIndex>,
value);
> So it should be changed to:
> Arrays.fill(buf, checksumOffset, checksumOffset + checksumLen, (byte) 0);



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message