hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manoj Govindassamy (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-11911) SnapshotDiff should maintain the order of file/dir creation and deletion
Date Thu, 01 Jun 2017 19:27:04 GMT
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...
+  CREATE File-1
+ Snap S1 created
+ DELETE File-1
+ Snap S2 created
+ CREATE File-1
+ Snap S3 created

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. 

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

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

This message was sent by Atlassian JIRA

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

View raw message