hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Zhuge (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9633) Test SnapshotDiffReport file path corner cases
Date Tue, 12 Jan 2016 19:21:39 GMT

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

John Zhuge commented on HDFS-9633:
----------------------------------

Diff report for testDiffReportWithDeleteCreateSameName:
{noformat}
Difference between snapshot s0 and snapshot s1 under directory /:
M       .
+       ./foo
-       ./foo
{noformat}

Diff report for testDiffReportWithCircularRenames:
{noformat}
Difference between snapshot s0 and snapshot s1 under directory /:
M       .
R       ./bar -> ./foo
R       ./foo -> ./bar
{noformat}

SnapshotDiffReport works as expected. I will verify distcp handles these cases properly.

> 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)

Mime
View raw message