[ 
https://issues.apache.org/jira/browse/HDFS-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752611#action_12752611
 ] 

Hairong Kuang commented on HDFS-585:
------------------------------------

1. I think DataNode should get the on-disk block length from ReplicaInfo not 
from disk because DataNode guarantees that crc file is also updated when 
updating the replica's in-memory bytesOnDisk. 
2. Should we have unit tests testing reading from an unclosed file?

> Datanode should serve up to visible length of a replica for read requests
> -------------------------------------------------------------------------
>
>                 Key: HDFS-585
>                 URL: https://issues.apache.org/jira/browse/HDFS-585
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: data-node
>    Affects Versions: Append Branch
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>             Fix For: Append Branch
>
>         Attachments: h585_20090903.patch, h585_20090904.patch, 
> h585_20090904b.patch
>
>
> As a part of the design in HDFS-265, datanodes should return all bytes within 
> the visible length of a replica to the DFSClient in order to support read 
> consistency.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to