[ https://issues.apache.org/jira/browse/HDFS-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13683677#comment-13683677 ]
Arpit Agarwal commented on HDFS-4875: ------------------------------------- Fixed, thanks for looking again! > Add a test for testing snapshot file length > ------------------------------------------- > > Key: HDFS-4875 > URL: https://issues.apache.org/jira/browse/HDFS-4875 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: snapshots, test > Affects Versions: 3.0.0, 2.1.0-beta > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Arpit Agarwal > Priority: Minor > Attachments: HDFS-4875.001.patch, HDFS-4875.002.patch > > > Here is a test idea from Suresh: > - A file was length x at the time of snapshot (say s1) creation > - Later y bytes get added to the file through append > When client gets block locations for the file from snapshot s1, the length it > know is x. We should make sure it cannot read beyond length x. -- 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