Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
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.