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 "Mingliang Liu (JIRA)" <ji...@apache.org> on 2018/09/15 06:11:00 UTC
[jira] [Commented] (HDFS-11719) Arrays.fill() wrong index in
BlockSender.readChecksum() exception handling
[ https://issues.apache.org/jira/browse/HDFS-11719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16615615#comment-16615615 ]
Mingliang Liu commented on HDFS-11719:
--------------------------------------
+1
Rebasing the patch and re-submitting it.
> 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
> Priority: Major
> Attachments: HADOOP-11719.001.patch, HADOOP-11719.002.patch
>
>
> 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
(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