Chen Liang created HDFS-11577:
---------------------------------
Summary: 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
Reporter: Chen Liang
Assignee: Chen Liang
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.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]