YARN-2649. Fixed TestAMRMRPCNodeUpdates test failure. Contributed by Ming Ma
(cherry picked from commit e16e25ab1beac89c8d8be4e9f2a7fbefe81d35f3)
This commit is contained in:
parent
d9aa0f8333
commit
5e6f86e3aa
@ -558,6 +558,8 @@ Release 2.6.0 - UNRELEASED
|
|||||||
YARN-1857. CapacityScheduler headroom doesn't account for other AM's running.
|
YARN-1857. CapacityScheduler headroom doesn't account for other AM's running.
|
||||||
(Chen He and Craig Welch via jianhe)
|
(Chen He and Craig Welch via jianhe)
|
||||||
|
|
||||||
|
YARN-2649. Fixed TestAMRMRPCNodeUpdates test failure. (Ming Ma via jianhe)
|
||||||
|
|
||||||
Release 2.5.1 - 2014-09-05
|
Release 2.5.1 - 2014-09-05
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -386,7 +386,15 @@ PrivilegedAction<SubmitApplicationResponse> setClientReq(
|
|||||||
if (waitForAccepted) {
|
if (waitForAccepted) {
|
||||||
waitForState(appId, RMAppState.ACCEPTED);
|
waitForState(appId, RMAppState.ACCEPTED);
|
||||||
}
|
}
|
||||||
return getRMContext().getRMApps().get(appId);
|
RMApp rmApp = getRMContext().getRMApps().get(appId);
|
||||||
|
|
||||||
|
// unmanaged AM won't go to RMAppAttemptState.SCHEDULED.
|
||||||
|
if (waitForAccepted && !unmanaged) {
|
||||||
|
waitForState(rmApp.getCurrentAppAttempt().getAppAttemptId(),
|
||||||
|
RMAppAttemptState.SCHEDULED);
|
||||||
|
}
|
||||||
|
|
||||||
|
return rmApp;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MockNM registerNode(String nodeIdStr, int memory) throws Exception {
|
public MockNM registerNode(String nodeIdStr, int memory) throws Exception {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user