[
https://issues.apache.org/jira/browse/HDFS-12905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Virajith Jalaparti updated HDFS-12905:
--------------------------------------
Attachment: HDFS-12905-HDFS-9806.001.patch
Attached patch adds a {{ProvidedStorageMap#notifyDatanodeStateChange}}, which
is called whenever a Datanode's state transitions out of
{{AdminStates.NORMAL}}. When Datanodes are noticed as dead
({{HeartbeatManager#removeDatanode}}), {{ProvidedStorageMap#removeDatanode}} is
called. {{ProvidedDatanodeDescriptor}} now maintains 2 lists - one for
datanodes whose state is {{AdminStates.NORMAL}}, and another for datanodes
whose state is not {{AdminStates.NORMAL}} (we don't distinguish among the
states that are not {{AdminStates.NORMAL}}).
> [READ] Handle decommissioning and under-maintenance Datanodes with Provided
> storage.
> ------------------------------------------------------------------------------------
>
> Key: HDFS-12905
> URL: https://issues.apache.org/jira/browse/HDFS-12905
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Virajith Jalaparti
> Assignee: Virajith Jalaparti
> Attachments: HDFS-12905-HDFS-9806.001.patch
>
>
> {{ProvidedStorageMap}} doesn't keep track of the state of the datanodes with
> Provided storage. As a result, it can return nodes that are being
> decommissioned or under-maintenance even when live datanodes exist. This JIRA
> is to prefer live datanodes to datanodes in other states.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]