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

Hari Mankude commented on HDFS-4873:
------------------------------------

Looks like the problem is in getBlockLocationsUpdateTimes() where length is not 
truncated to fileSize before calling createLocatedBlocks(). There are other 
solutions possible if snap inode is passed in.
                
> 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
>
> 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

Reply via email to