[ https://issues.apache.org/jira/browse/HDFS-4873?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13673558#comment-13673558 ]
Hari Mankude commented on HDFS-4873: ------------------------------------ The sequence of operations for creating the problem 1. create a file of size one block 2. take a snapshot 3. append some data to this file. 4. use DfsClient.callGetBlockLocations() to get block locations of the snapshot version of the file. The file len is specified as Long.MAX_VALUE. 5. This call returns two LocatedBlocks for the snapshot version of the file instead of one block. > 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