Zhe Zhang created HDFS-8076:
-------------------------------

             Summary: Code cleanup for DFSInputStream: use offset instead of 
LocatedBlock when possible
                 Key: HDFS-8076
                 URL: https://issues.apache.org/jira/browse/HDFS-8076
             Project: Hadoop HDFS
          Issue Type: Improvement
            Reporter: Zhe Zhang
            Assignee: Zhe Zhang


This JIRA aims to refactor the signatures {{fetchBlockByteRange}} and 
{{actualGetFromOneDataNode}}. Instead of taking a {{LocatedBlock}}, I think 
they should just take the starting offset of that block, since they'll later 
call {{getBlockAt}} to refresh the location anyway. I think we should make it 
clear so the callers are not surprised if the finally used {{LocatedBlock}} is 
not the one they passed in. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to