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

Yongjun Zhang commented on HDFS-9633:
-------------------------------------

Hi [~jzhuge],

Thanks for reporting and working on the jira. Would you please elaborate what 
"strange scenario"? Is it only about  confusion or that you are trying to fix 
something (your uploaded patch only touched the test code)?

Thanks.



> Test SnapshotDiffReport file path corner cases
> ----------------------------------------------
>
>                 Key: HDFS-9633
>                 URL: https://issues.apache.org/jira/browse/HDFS-9633
>             Project: Hadoop HDFS
>          Issue Type: Test
>            Reporter: John Zhuge
>            Assignee: John Zhuge
>            Priority: Minor
>         Attachments: HDFS-9633-001.patch
>
>
> SnapshotDiffReport design uses "file path" (instead of "inode ID + file path" 
> as one example) to represent each diff entry. This can leads to some strange 
> scenarios.
> * DeleteRecreate: Delete a file, then create a new file of the same name.
> * CircularRenames: Rename file "a" to "tmp", rename "b" to "a", then rename 
> "tmp" to "b".
> Add more unit tests to verify these corner cases.



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

Reply via email to