Skip to content

Commit

Permalink
YARN-5131. Distributed shell AM fails when extra container arrives du…
Browse files Browse the repository at this point in the history
…ring finishing. Contributed by Wangda Tan.
  • Loading branch information
JunpingDu committed May 25, 2016
1 parent dcbb700 commit 48c9313
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,8 @@ protected boolean finish() {
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;
Expand Down

0 comments on commit 48c9313

Please sign in to comment.