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;
|
||||
String appMessage = null;
|
||||
boolean success = true;
|
||||
if (numFailedContainers.get() == 0 &&
|
||||
numCompletedContainers.get() == numTotalContainers) {
|
||||
if (numCompletedContainers.get() - numFailedContainers.get()
|
||||
>= numTotalContainers) {
|
||||
appStatus = FinalApplicationStatus.SUCCEEDED;
|
||||
} else {
|
||||
appStatus = FinalApplicationStatus.FAILED;
|
||||
|
|
Loading…
Reference in New Issue