diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index bd69ce21685..28c3a55c05d 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -177,6 +177,9 @@ Release 2.8.0 - UNRELEASED YARN-3465. Use LinkedHashMap to preserve order of resource requests. (Zhihai Xu via kasha) + YARN-3382. Some of UserMetricsInfo metrics are incorrectly set to root + queue metrics. (Rohit Agarwal via jianhe) + Release 2.7.1 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/dao/UserMetricsInfo.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/dao/UserMetricsInfo.java index 73a83d7db27..bfa5bd2937d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/dao/UserMetricsInfo.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/dao/UserMetricsInfo.java @@ -63,11 +63,11 @@ public class UserMetricsInfo { this.userMetricsAvailable = true; this.appsSubmitted = userMetrics.getAppsSubmitted(); - this.appsCompleted = metrics.getAppsCompleted(); - this.appsPending = metrics.getAppsPending(); - this.appsRunning = metrics.getAppsRunning(); - this.appsFailed = metrics.getAppsFailed(); - this.appsKilled = metrics.getAppsKilled(); + this.appsCompleted = userMetrics.getAppsCompleted(); + this.appsPending = userMetrics.getAppsPending(); + this.appsRunning = userMetrics.getAppsRunning(); + this.appsFailed = userMetrics.getAppsFailed(); + this.appsKilled = userMetrics.getAppsKilled(); this.runningContainers = userMetrics.getAllocatedContainers(); this.pendingContainers = userMetrics.getPendingContainers();