From 987a8972acf4201642881dc3dcda21f6cfcf3bc7 Mon Sep 17 00:00:00 2001 From: Jinjiang Ling Date: Tue, 30 Jan 2018 00:00:57 +0900 Subject: [PATCH] YARN-7698. A misleading variable's name in ApplicationAttemptEventDispatcher Signed-off-by: Akira Ajisaka (cherry picked from commit 3400d0c535aeb151c3f283cc41111b15d66990e5) --- .../yarn/server/resourcemanager/ResourceManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java index 58b70cc2ce9..844cc4c3cbc 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java @@ -956,11 +956,11 @@ public class ResourceManager extends CompositeService implements Recoverable { @Override public void handle(RMAppAttemptEvent event) { - ApplicationAttemptId appAttemptID = event.getApplicationAttemptId(); - ApplicationId appAttemptId = appAttemptID.getApplicationId(); - RMApp rmApp = this.rmContext.getRMApps().get(appAttemptId); + ApplicationAttemptId appAttemptId = event.getApplicationAttemptId(); + ApplicationId appId = appAttemptId.getApplicationId(); + RMApp rmApp = this.rmContext.getRMApps().get(appId); if (rmApp != null) { - RMAppAttempt rmAppAttempt = rmApp.getRMAppAttempt(appAttemptID); + RMAppAttempt rmAppAttempt = rmApp.getRMAppAttempt(appAttemptId); if (rmAppAttempt != null) { try { rmAppAttempt.handle(event);