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

Hairong Kuang commented on HDFS-604:
------------------------------------

1. When a block is under construction, a block report should not update an 
existing replica's state or add a replica to toRemoved list. NN should only 
allow to add new replicas. Otherwise, it will have race condition with client 
updated pipeline.
2. NN should not add storedBlock to toCorrupt list if storedBlock' GS is not 
the same as that of the reported replica. Otherwise a wrong GS of the replica 
will get deleted.

Other issues we have discussed:
1. When fetching stored block, GS should not be part of the key. HDFS-512 is 
not committed yet.
2. For safemode, we should count only complete blocks and finalized replicas.

> Block report processing for append
> ----------------------------------
>
>                 Key: HDFS-604
>                 URL: https://issues.apache.org/jira/browse/HDFS-604
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: name-node
>    Affects Versions: Append Branch
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>             Fix For: Append Branch
>
>         Attachments: BlockReportNN.patch, BlockReportNN.patch
>
>
> Implement new block report processing on the name-node as stated in the 
> append design and HDFS-576.

-- 
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