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 "Shilun Fan (Jira)" <ji...@apache.org> on 2024/01/04 07:23:00 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=17802487#comment-17802487 ]
Shilun Fan commented on HDFS-11911:
-----------------------------------
Bulk update: moved all 3.4.0 non-blocker issues, please move back if it is a blocker. Retarget 3.5.0.
> 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
> Priority: Major
>
> {{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
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org