hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-15486) Make NetworkTopology#netLock fair
Date Wed, 23 May 2018 18:07:00 GMT

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

Hudson commented on HADOOP-15486:
---------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #14270 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/14270/])
HADOOP-15486. Make NetworkTopology#netLock fair. Contributed by Nanda (arp: rev 51ce02bb54d6047a8191624a86d427b0c9445cb1)
* (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NetworkTopology.java


> Make NetworkTopology#netLock fair
> ---------------------------------
>
>                 Key: HADOOP-15486
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15486
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: net
>            Reporter: Nanda kumar
>            Assignee: Nanda kumar
>            Priority: Major
>             Fix For: 2.10.0, 3.2.0, 3.1.1, 2.9.2, 2.7.7, 2.8.5
>
>         Attachments: HADOOP-15486.000.patch, HADOOP-15486.001.patch
>
>
> Whenever a datanode is restarted, the registration call after the restart received by
NameNode lands in {{NetworkTopology#add}} via {{DatanodeManager#registerDatanode}} requires
write lock on {{NetworkTopology#netLock}}.
> This registration thread is getting starved by flood of {{FSNamesystem.getAdditionalDatanode}}
calls, which are triggered by clients those who were writing to the restarted datanode.
> The registration call which is waiting for write lock on {{NetworkTopology#netLock}}
is holding write lock on {{FSNamesystem#fsLock}}, causing all the other RPC calls which require
the lock on {{FSNamesystem#fsLock}} wait.
> We can make {{NetworkTopology#netLock}} lock fair so that the registration thread will
not starve.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message