hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arun Suresh (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-5350) Ensure LocalScheduler does not lose the sort order of allocatable nodes returned by the RM
Date Mon, 11 Jul 2016 00:39:11 GMT
Arun Suresh created YARN-5350:
---------------------------------

             Summary: Ensure LocalScheduler does not lose the sort order of allocatable nodes
returned by the RM
                 Key: YARN-5350
                 URL: https://issues.apache.org/jira/browse/YARN-5350
             Project: Hadoop YARN
          Issue Type: Sub-task
            Reporter: Arun Suresh
            Assignee: Arun Suresh


The LocalScheduler receives an ordered list of nodes from the RM with each allocate call.
This list, which is used by the LocalScheduler to allocate OPPORTUNISTIC containers, is sorted
on the Nodes free capacity (queue length / wait time).

Unfortunately, the LocalScheduler stores this list in a HashMap thereby losing the sort order.

The trivial fix would be to replace the HashMap with a LinkedHashMap which retains the insertion
order.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message