hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manoj Govindassamy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12544) SnapshotDiff - support diff generation on any snapshot root descendant directory
Date Tue, 24 Oct 2017 18:16:03 GMT

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

Manoj Govindassamy commented on HDFS-12544:

1.  Yes, just like the files moved out of the scope directory are showing as "Deleted", the
files moved in under a scope directory as part of renames will show as "Added".

2. The newly created directory/files are available in the current version. So, even these
newly created dirs can be requested for the scope diff. Its just that they are not part of
any older snapshots so we will get empty diff list. 

Will post a new patch revision with tests updated to cover above cases. Thanks.

> SnapshotDiff - support diff generation on any snapshot root descendant directory
> --------------------------------------------------------------------------------
>                 Key: HDFS-12544
>                 URL: https://issues.apache.org/jira/browse/HDFS-12544
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>    Affects Versions: 3.0.0-beta1
>            Reporter: Manoj Govindassamy
>            Assignee: Manoj Govindassamy
>         Attachments: HDFS-12544.01.patch, HDFS-12544.02.patch, HDFS-12544.03.patch, HDFS-12544.04.patch
> {noformat}
> # hdfs snapshotDiff <snapshot_root_path> <from_snapshot_name> <to_snapshot_name>
> {noformat}
> Using snapshot diff command, we can generate a diff report between any two given snapshots
under a snapshot root directory. The command today only accepts the path that is a snapshot
root. There are many deployments where the snapshot root is configured at the higher level
directory but the diff report needed is only for a specific directory under the snapshot root.
In these cases, the diff report can be filtered for changes pertaining to the directory we
are interested in. But when the snapshot root directory is very huge, the snapshot diff report
generation can take minutes even if we are interested to know the changes only in a small
directory. So, it would be highly performant if the diff report calculation can be limited
to only the interesting sub-directory of the snapshot root instead of the whole snapshot root.

This message was sent by Atlassian JIRA

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

View raw message