You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Manoj Govindassamy (JIRA)" <ji...@apache.org> on 2017/06/01 19:27:04 UTC

[jira] [Created] (HDFS-11911) SnapshotDiff should maintain the order of file/dir creation and deletion

Manoj Govindassamy created HDFS-11911:
-----------------------------------------

             Summary: SnapshotDiff should maintain the order of file/dir creation and deletion
                 Key: HDFS-11911
                 URL: https://issues.apache.org/jira/browse/HDFS-11911
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: hdfs, snapshots
    Affects Versions: 3.0.0-alpha1
            Reporter: Manoj Govindassamy
            Assignee: Manoj Govindassamy


{{DirectoryWithSnapshotFeature}} maintains a separate list for CREATED and DELETED children but the ordering of these creation and deletion events are not maintained. Assume a case like below, where the time is growing downwards...
{noformat}
|
+  CREATE File-1
|
+ Snap S1 created
|
+ DELETE File-1
|
+ Snap S2 created
|
+ CREATE File-1
|
+ Snap S3 created
|
|
V
{noformat} 

The snapshot diff report which takes in the DirectoryWithSnapshotFeature diff entries and just prints all the creation first and then the deletions, thereby giving the perception that file-1 got created first and then got deleted. But after S3, file-1 is still available. 

{noformat}
The difference between snapshot S1 and snapshot S3 under the directory /:
M	.
+	./file-1
-	./file-1
{noformat}

Can we have DirectoryWithSnapshotFeature maintain the diff entries ordered by time or sequence? 




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org