Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-12544

SnapshotDiff - support diff generation on any snapshot root descendant directory



    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-beta1
    • Fix Version/s: 3.0.0
    • Component/s: hdfs
    • Labels:
    • Target Version/s:


      # hdfs snapshotDiff <snapshot_root_path> <from_snapshot_name> <to_snapshot_name>

      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.


        1. HDFS-12544.05.patch
          49 kB
          Manoj Govindassamy
        2. HDFS-12544.04.patch
          47 kB
          Manoj Govindassamy
        3. HDFS-12544.03.patch
          41 kB
          Manoj Govindassamy
        4. HDFS-12544.02.patch
          37 kB
          Manoj Govindassamy
        5. HDFS-12544.01.patch
          37 kB
          Manoj Govindassamy

          Issue Links



              • Assignee:
                manojg Manoj Govindassamy
                manojg Manoj Govindassamy
              • Votes:
                0 Vote for this issue
                8 Start watching this issue


                • Created: