[
https://issues.apache.org/jira/browse/HDFS-12422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16398950#comment-16398950
]
Íñigo Goiri commented on HDFS-12422:
------------------------------------
Thanks [~lukmajercak] for the ping.
The whole fix is to remove the if that skips the recovery:
{code}
} else if (stage == BlockConstructionStage.PIPELINE_CLOSE
|| stage == BlockConstructionStage.PIPELINE_CLOSE_RECOVERY) {
//pipeline is closing
return;
}
{code}
> Replace DataNode in Pipeline when waiting for Last Packet fails
> ---------------------------------------------------------------
>
> Key: HDFS-12422
> URL: https://issues.apache.org/jira/browse/HDFS-12422
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs, hdfs-client
> Reporter: Lukas Majercak
> Assignee: Lukas Majercak
> Priority: Major
> Labels: hdfs
> Attachments: HDFS-12422.001.patch
>
>
> # Create a file with replicationFactor = 4, minReplicas = 2
> # Fail waiting for the last packet, followed by 2 exceptions when recovering
> the leftover pipeline
> # The leftover pipeline will only have one DN and NN will never close such
> block, resulting in failure to write
> The block will stay there forever, unable to be replicated, ultimately going
> missing.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]