Merge r1502906 from trunk to branch-2 for YARN-541. getAllocatedContainers() is not returning all the allocated containers (bikas)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1502907 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d93e7ca15d
commit
c1b0106711
|
@ -666,6 +666,9 @@ Release 2.1.0-beta - 2013-07-02
|
||||||
from application masters that have not registered (Mayank Bansal &
|
from application masters that have not registered (Mayank Bansal &
|
||||||
Abhishek Kapoor via bikas)
|
Abhishek Kapoor via bikas)
|
||||||
|
|
||||||
|
YARN-541. getAllocatedContainers() is not returning all the allocated
|
||||||
|
containers (bikas)
|
||||||
|
|
||||||
BREAKDOWN OF HADOOP-8562 SUBTASKS AND RELATED JIRAS
|
BREAKDOWN OF HADOOP-8562 SUBTASKS AND RELATED JIRAS
|
||||||
|
|
||||||
YARN-158. Yarn creating package-info.java must not depend on sh.
|
YARN-158. Yarn creating package-info.java must not depend on sh.
|
||||||
|
|
|
@ -230,7 +230,14 @@ public class AMRMClientImpl<T extends ContainerRequest> extends AMRMClient<T> {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
askList = new ArrayList<ResourceRequest>(ask);
|
askList = new ArrayList<ResourceRequest>(ask.size());
|
||||||
|
for(ResourceRequest r : ask) {
|
||||||
|
// create a copy of ResourceRequest as we might change it while the
|
||||||
|
// RPC layer is using it to send info across
|
||||||
|
askList.add(ResourceRequest.newInstance(r.getPriority(),
|
||||||
|
r.getResourceName(), r.getCapability(), r.getNumContainers(),
|
||||||
|
r.getRelaxLocality()));
|
||||||
|
}
|
||||||
releaseList = new ArrayList<ContainerId>(release);
|
releaseList = new ArrayList<ContainerId>(release);
|
||||||
// optimistically clear this collection assuming no RPC failure
|
// optimistically clear this collection assuming no RPC failure
|
||||||
ask.clear();
|
ask.clear();
|
||||||
|
|
Loading…
Reference in New Issue