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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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.003.patch
          4 kB
          Charles Lamb
        2. HDFS-7682.002.patch
          4 kB
          Charles Lamb
        3. HDFS-7682.001.patch
          4 kB
          Charles Lamb
        4. HDFS-7682.000.patch
          3 kB
          Charles Lamb

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: