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

Virajith Jalaparti commented on HDFS-12905:
-------------------------------------------

All operations are done under the FSNamesytem write lock.
{code}
+  public void notifyDatanodeStateChange(DatanodeDescriptor node) {
+    assert lock.hasWriteLock(): "FSNamesystem lock has to be held";
+    if (providedEnabled && node.hasStorageType(StorageType.PROVIDED)) {
+      providedDescriptor.notifyStateChange(node);
+    }
+  }
{code}


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

Reply via email to