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

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

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

Manoj Govindassamy commented on HDFS-11911:
-------------------------------------------

[~jingzhao], [~yzhangal], any thoughts on maintaining the order of diff entries?

> 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-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org