YARN-5131. Distributed shell AM fails when extra container arrives during finishing. Contributed by Wangda Tan.
This commit is contained in:
parent
dcbb7009b6
commit
48c931331c
@ -745,8 +745,8 @@ public class ApplicationMaster {
|
|||||||
FinalApplicationStatus appStatus;
|
FinalApplicationStatus appStatus;
|
||||||
String appMessage = null;
|
String appMessage = null;
|
||||||
boolean success = true;
|
boolean success = true;
|
||||||
if (numFailedContainers.get() == 0 &&
|
if (numCompletedContainers.get() - numFailedContainers.get()
|
||||||
numCompletedContainers.get() == numTotalContainers) {
|
>= numTotalContainers) {
|
||||||
appStatus = FinalApplicationStatus.SUCCEEDED;
|
appStatus = FinalApplicationStatus.SUCCEEDED;
|
||||||
} else {
|
} else {
|
||||||
appStatus = FinalApplicationStatus.FAILED;
|
appStatus = FinalApplicationStatus.FAILED;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user