YARN-9237. NM should ignore sending finished apps to RM during RM fail-over. Contributed by Jiandan Yang.
(cherry picked from commit 4f63ffe444
)
This commit is contained in:
parent
8c332affa8
commit
6b8dd8d113
|
@ -628,7 +628,13 @@ public class NodeStatusUpdaterImpl extends AbstractService implements
|
|||
|
||||
private List<ApplicationId> getRunningApplications() {
|
||||
List<ApplicationId> runningApplications = new ArrayList<ApplicationId>();
|
||||
runningApplications.addAll(this.context.getApplications().keySet());
|
||||
for (Entry<ApplicationId, Application> appEntry : this.context
|
||||
.getApplications().entrySet()) {
|
||||
if (ApplicationState.FINISHED != appEntry.getValue()
|
||||
.getApplicationState()) {
|
||||
runningApplications.add(appEntry.getKey());
|
||||
}
|
||||
}
|
||||
return runningApplications;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue