[
https://issues.apache.org/jira/browse/HDFS-4873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jing Zhao updated HDFS-4873:
----------------------------
Attachment: HDFS-4873.001.patch
Thanks a lot for the good catch, Hari!
Upload the initial patch for review, in which I just followed your suggestions
to truncate the length to fileSize before calling createLocatedBlocks. Besides,
I just identify the last block that the fileSize hits as the last block in the
returned locatedBlocks.
> callGetBlockLocations returns incorrect number of blocks for snapshotted files
> ------------------------------------------------------------------------------
>
> Key: HDFS-4873
> URL: https://issues.apache.org/jira/browse/HDFS-4873
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: snapshots
> Affects Versions: 3.0.0
> Reporter: Hari Mankude
> Assignee: Jing Zhao
> Attachments: HDFS-4873.001.patch
>
>
> callGetBlockLocations() returns all the blocks of a file even when they are
> not present in the snap version
--
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