[
https://issues.apache.org/jira/browse/HDFS-9733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15159607#comment-15159607
]
Uma Maheswara Rao G commented on HDFS-9733:
-------------------------------------------
[~drankye] I think one reason for test failure could be that, when located
blocks are 0 (may be for zero size files etc), we don't really try from
datanodes, but here you are setting crcType only when we call tryDatanode. Here
default crcType can be set bydefaut.I checked the older code, there we are
setting default crcType by default. Please validate and update the patch
accordingly. Thanks
> Refactor DFSClient#getFileChecksum and DataXceiver#blockChecksum
> ----------------------------------------------------------------
>
> Key: HDFS-9733
> URL: https://issues.apache.org/jira/browse/HDFS-9733
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Kai Zheng
> Assignee: Kai Zheng
> Attachments: HDFS-9733-v1.patch, HDFS-9733-v2.patch,
> HDFS-9733-v3.patch, HDFS-9733-v4.patch
>
>
> To prepare for file checksum computing for striped files, this refactors the
> existing codes in Refactor {{DFSClient#getFileChecksum}} and
> {{DataXceiver#blockChecksum}} to make HDFS-8430 and HDFS-9694 easier.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)