hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11577) Combine the old and the new chooseRandom for better performance
Date Tue, 28 Mar 2017 15:34:41 GMT

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

Hudson commented on HDFS-11577:

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11482 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/11482/])
HDFS-11577. Combine the old and the new chooseRandom for better (yqlin: rev 6b0933643835d7696ced011cfdb8b74f63022e8b)
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/net/TestDFSNetworkTopology.java
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/net/DFSNetworkTopology.java
* (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/NetworkTopology.java

> 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: 3.0.0-alpha3
>         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

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

View raw message