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

Hairong Kuang commented on HDFS-1481:
-------------------------------------

Konstantin, thanks for your review. Sorry for getting back to this late. I was 
distracted by something else.

For CN, image checksum validate was done when loading the image from disk to 
memory. So I do not think CN should validate it at download time.

> 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