You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2017/08/24 18:20:01 UTC

[jira] [Commented] (HDFS-11577) Combine the old and the new chooseRandom for better performance

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

Arpit Agarwal commented on HDFS-11577:
--------------------------------------

Committed to branch-2. Thanks for the continued work on these backports [~vagarychen].

> Combine the old and the new chooseRandom for better performance
> ---------------------------------------------------------------
>
>                 Key: HDFS-11577
>                 URL: https://issues.apache.org/jira/browse/HDFS-11577
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: namenode
>            Reporter: Chen Liang
>            Assignee: Chen Liang
>             Fix For: 2.9.0, 3.0.0-alpha4
>
>         Attachments: HDFS-11577.001.patch, HDFS-11577.002.patch, HDFS-11577.003.patch
>
>
> As discussed in HDFS-11535, this JIRA adds a new function combining both the new and the old chooseRandom methods for better performance.
> More specifically, when choosing a random node with storage type requirement, the combined method first tries the old method of blindly picking a random node. If this node satisfies, it is returned. Otherwise, the new chooseRandom is called, which guarantees to find a eligible node in one call (if there is one at all).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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