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

Suresh Srinivas updated HDFS-1218:
----------------------------------

    Attachment: HDFS-1218.20s.2.patch

Patch ported to 0.20-security.

TestFileAppend4#testFullClusterPowerLoss() fails in this patch. The test 
involves lease recovery post DN restart, triggered by append. Since DN ipc 
ports change between restarts and NN does not update the IPC port for the DNs 
upon re-registration, the lease recovery uses ipc port from the previous 
registration. This results in RPC failure and the test failure.

I have change DatanodeID#updateRegInfo() to update ipc port along with other 
fields.

> 20 append: Blocks recovered on startup should be treated with lower priority 
> during block synchronization
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-1218
>                 URL: https://issues.apache.org/jira/browse/HDFS-1218
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: data-node
>    Affects Versions: 0.20-append
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Critical
>             Fix For: 0.20-append
>
>         Attachments: HDFS-1218.20s.2.patch, hdfs-1281.txt
>
>
> When a datanode experiences power loss, it can come back up with truncated 
> replicas (due to local FS journal replay). Those replicas should not be 
> allowed to truncate the block during block synchronization if there are other 
> replicas from DNs that have _not_ restarted.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to