[
https://issues.apache.org/jira/browse/HDFS-9220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14951287#comment-14951287
]
Kihwal Lee commented on HDFS-9220:
----------------------------------
It looks like it fails only when append is involved. If it is closed after
appending, read succeeds.
||action after writing 200 bytes || writing 300 bytes || read result ||
| close | append & hflush | fail |
| close | append & close | success |
| hflush | close | success |
| hflush | hflush | success |
> ChecksumException after writing less than 512 bytes
> ---------------------------------------------------
>
> Key: HDFS-9220
> URL: https://issues.apache.org/jira/browse/HDFS-9220
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.7.1
> Reporter: Bogdan Raducanu
> Assignee: Jagadesh Kiran N
> Attachments: test2.java
>
>
> Exception:
> 2015-10-09 14:59:40 WARN DFSClient:1150 - fetchBlockByteRange(). Got a
> checksum exception for /tmp/file0.05355529331575182 at
> BP-353681639-10.10.10.10-1437493596883:blk_1075692769_9244882:0 from
> DatanodeInfoWithStorage[10.10.10.10]:5001
> All 3 replicas cause this exception and the read fails entirely with:
> BlockMissingException: Could not obtain block:
> BP-353681639-10.10.10.10-1437493596883:blk_1075692769_9244882
> file=/tmp/file0.05355529331575182
> Code to reproduce is attached.
> Does not happen in 2.7.0.
> Data is read correctly if checksum verification is disabled.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)