From b543d1a390a67e5e92fea67d3a2635058c29e9da Mon Sep 17 00:00:00 2001 From: Devaraj K Date: Sun, 28 Jun 2015 10:04:50 +0530 Subject: [PATCH] YARN-3859. LeafQueue doesn't print user properly for application add. Contributed by Varun Saxena. --- hadoop-yarn-project/CHANGES.txt | 3 +++ .../server/resourcemanager/scheduler/capacity/LeafQueue.java | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index e2bf706578e..cb6deb1e3b3 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -562,6 +562,9 @@ Release 2.8.0 - UNRELEASED YARN-2871. TestRMRestart#testRMRestartGetApplicationList sometime fails in trunk. (zhihai xu via xgong) + YARN-3859. LeafQueue doesn't print user properly for application add. + (Varun Saxena via devaraj) + 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/scheduler/capacity/LeafQueue.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/LeafQueue.java index 8e39133f604..e5b44a6a0d2 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/LeafQueue.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/LeafQueue.java @@ -676,7 +676,8 @@ public class LeafQueue extends AbstractCSQueue { LOG.info("Application added -" + " appId: " + application.getApplicationId() + - " user: " + user + "," + " leaf-queue: " + getQueueName() + + " user: " + application.getUser() + "," + + " leaf-queue: " + getQueueName() + " #user-pending-applications: " + user.getPendingApplications() + " #user-active-applications: " + user.getActiveApplications() + " #queue-pending-applications: " + getNumPendingApplications() +