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

FileDiff's skipped by hdfs snapshotDiff

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.0
    • None
    • snapshots
    • None

    Description

      Summary
      As described in HDFS-9197, FileDiff's get created based on changes in a file's modified or access time. In Hadoop 2.5, the method metadataEquals was added to org.apache.hadoop.hdfs.server.namenode.INodeFileAttributes. The hdfs snapshotDiff command seems to use the method to show a list of snapshot metadata diff's, but because the method doesn't check for the times, you CANNOT see the time-based FileDiff's in the comparison. This used to work before Hadoop 2.5. I see the new behavior as problematic because the user no longer has an accurate picture of all the Namenode metadata created for a snapshot unless he looks at the fsimage.

      Configuration:
      CDH 5.5.1 (Hadoop 2.6)

      Attachments

        Issue Links

          Activity

            People

              jzhuge John Zhuge
              axenol Alex Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: