YARN-7698. A misleading variable's name in ApplicationAttemptEventDispatcher
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit 3400d0c535
)
This commit is contained in:
parent
0922ea0aaf
commit
987a8972ac
|
@ -956,11 +956,11 @@ public class ResourceManager extends CompositeService implements Recoverable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void handle(RMAppAttemptEvent event) {
|
public void handle(RMAppAttemptEvent event) {
|
||||||
ApplicationAttemptId appAttemptID = event.getApplicationAttemptId();
|
ApplicationAttemptId appAttemptId = event.getApplicationAttemptId();
|
||||||
ApplicationId appAttemptId = appAttemptID.getApplicationId();
|
ApplicationId appId = appAttemptId.getApplicationId();
|
||||||
RMApp rmApp = this.rmContext.getRMApps().get(appAttemptId);
|
RMApp rmApp = this.rmContext.getRMApps().get(appId);
|
||||||
if (rmApp != null) {
|
if (rmApp != null) {
|
||||||
RMAppAttempt rmAppAttempt = rmApp.getRMAppAttempt(appAttemptID);
|
RMAppAttempt rmAppAttempt = rmApp.getRMAppAttempt(appAttemptId);
|
||||||
if (rmAppAttempt != null) {
|
if (rmAppAttempt != null) {
|
||||||
try {
|
try {
|
||||||
rmAppAttempt.handle(event);
|
rmAppAttempt.handle(event);
|
||||||
|
|
Loading…
Reference in New Issue