[
https://issues.apache.org/jira/browse/HDFS-4292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Todd Lipcon updated HDFS-4292:
------------------------------
Resolution: Fixed
Fix Version/s: 2.0.3-alpha
3.0.0
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
Committed to branch-2 and trunk. Thanks, Binglin. Good catch.
> Sanity check not correct in RemoteBlockReader2.newBlockReader
> -------------------------------------------------------------
>
> Key: HDFS-4292
> URL: https://issues.apache.org/jira/browse/HDFS-4292
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Binglin Chang
> Assignee: Binglin Chang
> Priority: Minor
> Fix For: 3.0.0, 2.0.3-alpha
>
> Attachments: HDFS-4292.patch
>
>
> {code}
> if ( firstChunkOffset < 0 || firstChunkOffset > startOffset ||
> firstChunkOffset >= (startOffset + checksum.getBytesPerChecksum())) {
> {code}
> should be:
> {code}
> if ( firstChunkOffset < 0 || firstChunkOffset > startOffset ||
> firstChunkOffset <= (startOffset - checksum.getBytesPerChecksum())) {
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira