YARN-3465. Use LinkedHashMap to preserve order of resource requests. (Zhihai Xu via kasha)
This commit is contained in:
parent
9d8952f97f
commit
6495940eae
@ -162,6 +162,9 @@ Release 2.8.0 - UNRELEASED
|
||||
YARN-2890. MiniYarnCluster should turn on timeline service if
|
||||
configured to do so. (Mit Desai via hitesh)
|
||||
|
||||
YARN-3465. Use LinkedHashMap to preserve order of resource requests.
|
||||
(Zhihai Xu via kasha)
|
||||
|
||||
Release 2.7.0 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -25,6 +25,7 @@
|
||||
import java.util.Collection;
|
||||
import java.util.EnumSet;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
@ -638,7 +639,7 @@ public ContainerState transition(ContainerImpl container,
|
||||
return ContainerState.LOCALIZATION_FAILED;
|
||||
}
|
||||
Map<LocalResourceVisibility, Collection<LocalResourceRequest>> req =
|
||||
new HashMap<LocalResourceVisibility,
|
||||
new LinkedHashMap<LocalResourceVisibility,
|
||||
Collection<LocalResourceRequest>>();
|
||||
if (!container.publicRsrcs.isEmpty()) {
|
||||
req.put(LocalResourceVisibility.PUBLIC, container.publicRsrcs);
|
||||
|
Loading…
Reference in New Issue
Block a user