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

Jing Zhao commented on HDFS-6996:
---------------------------------

The failed tests should be unrelated. I will commit the patch shortly.

> SnapshotDiff report can hit IndexOutOfBoundsException when there are nested 
> renamed directory/file
> --------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-6996
>                 URL: https://issues.apache.org/jira/browse/HDFS-6996
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: snapshots
>    Affects Versions: 2.5.0
>            Reporter: Jing Zhao
>            Assignee: Jing Zhao
>         Attachments: HDFS-6996.000.patch, HDFS-6996.001.patch
>
>
> Currently when computing snapshot diff report where a renamed file/directory 
> is involved, we scan the {{withNameList}} inside of the corresponding 
> WithCount node to identify the correct rename target. However, the 
> {{withNameList}} can be empty due to snapshot deletion operations thus an 
> IndexOutOfBoundsException can be triggered.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to