You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Charles Lamb (JIRA)" <ji...@apache.org> on 2015/01/26 21:33:34 UTC

[jira] [Created] (HDFS-7682) {{DistributedFileSystem#getFileChecksum}} of a snapshotted file includes non-snapshotted content

Charles Lamb created HDFS-7682:
----------------------------------

             Summary: {{DistributedFileSystem#getFileChecksum}} of a snapshotted file includes non-snapshotted content
                 Key: HDFS-7682
                 URL: https://issues.apache.org/jira/browse/HDFS-7682
             Project: Hadoop HDFS
          Issue Type: Bug
    Affects Versions: 2.7.0
            Reporter: Charles Lamb
            Assignee: Charles Lamb


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)