[ 
https://issues.apache.org/jira/browse/HDFS-1481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hairong Kuang updated HDFS-1481:
--------------------------------

    Attachment: trunkValidateUpload.patch

This patch calculates checksum when NameNode download image from Secondary or 
Checkpointing NameNode. If the calculated checksum does not match the one 
supposed to be, it fails the image transfer.

> NameNode should validate fsimage before rolling
> -----------------------------------------------
>
>                 Key: HDFS-1481
>                 URL: https://issues.apache.org/jira/browse/HDFS-1481
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: name-node
>    Affects Versions: 0.22.0
>            Reporter: Hairong Kuang
>            Assignee: Hairong Kuang
>             Fix For: 0.22.0
>
>         Attachments: trunkValidateUpload.patch
>
>
> We had an incident that the fsimage at secondary NameNode was truncated but 
> got uploaded to the primary NameNode. The primary NameNode simply rolled the 
> image without checking its integrity, therefore causing the fsimage to 
> corrupt. The primary NameNode should check the new image's integrity before 
> rolling fsimage.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to