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

{{DistributedFileSystem#getFileChecksum}} of a snapshotted file includes non-snapshotted content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 2.7.0
    • None
    • None
    • Reviewed

    Description

      DistributedFileSystem#getFileChecksum of a snapshotted file includes non-snapshotted content.

      The reason why this happens is because DistributedFileSystem#getFileChecksum simply calculates the checksum of all of the CRCs from the blocks in the file. But, in the case of a snapshotted file, we don't want to include data in the checksum that was appended to the last block in the file after the snapshot was taken.

      Attachments

        1. HDFS-7682.000.patch
          3 kB
          Charles Lamb
        2. HDFS-7682.001.patch
          4 kB
          Charles Lamb
        3. HDFS-7682.002.patch
          4 kB
          Charles Lamb
        4. HDFS-7682.003.patch
          4 kB
          Charles Lamb

        Activity

          People

            clamb Charles Lamb
            clamb Charles Lamb
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: