hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7682) {{DistributedFileSystem#getFileChecksum}} of a snapshotted file includes non-snapshotted content
Date Wed, 04 Mar 2015 15:36:09 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14347036#comment-14347036
] 

Hudson commented on HDFS-7682:
------------------------------

SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2072 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2072/])
HDFS-7682. {{DistributedFileSystem#getFileChecksum}} of a snapshotted file includes non-snapshotted
content. Contributed by Charles Lamb. (atm: rev f2d7a67a2c1d9dde10ed3171fdec65dff885afcc)
* hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/snapshot/TestSnapshotFileLength.java


> {{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
>             Fix For: 2.7.0
>
>         Attachments: HDFS-7682.000.patch, HDFS-7682.001.patch, HDFS-7682.002.patch, HDFS-7682.003.patch
>
>
> 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)

Mime
View raw message