[
https://issues.apache.org/jira/browse/HDFS-4702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13632854#comment-13632854
]
Kihwal Lee commented on HDFS-4702:
----------------------------------
The namesystem write is held in refreshNodes(), removeDatanode(),
FSNamesystem.registerDatanode(), etc. It will be nice if we can safely separate
the lock.
> remove namesystem lock from DatanodeManager#fetchDatanodes
> ----------------------------------------------------------
>
> Key: HDFS-4702
> URL: https://issues.apache.org/jira/browse/HDFS-4702
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Affects Versions: 3.0.0
> Reporter: Chris Nauroth
>
> {{DatanodeManager#fetchDatanodes}} currently holds the namesystem read lock
> while iterating through data nodes. This method is called from the namenode
> web UI. HDFS-3990 reported a performance problem in this code path. This is
> a follow-up jira to investigate whether or not we can remove the lock.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira