[ https://issues.apache.org/jira/browse/HDFS-7831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantin Shvachko updated HDFS-7831: -------------------------------------- Attachment: HDFS-7831-01.patch Fixed the starting index for the loop. Also we do not need to check that {{i < diffs.size()}}, because now it always is. This should be treated as an optimization, so there are no additional test cases. > Fix the starting index of the loop in > FileDiffList.findEarlierSnapshotBlocks(). > ------------------------------------------------------------------------------- > > Key: HDFS-7831 > URL: https://issues.apache.org/jira/browse/HDFS-7831 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.7.0 > Reporter: Konstantin Shvachko > Attachments: HDFS-7831-01.patch > > > Currently the loop in {{FileDiffList.findEarlierSnapshotBlocks()}} starts > from {{insertPoint + 1}}. It should start from {{insertPoint - 1}}. As noted > in [Jing's > comment|https://issues.apache.org/jira/browse/HDFS-7056?focusedCommentId=14333864&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14333864] -- This message was sent by Atlassian JIRA (v6.3.4#6332)