浏览代码

YARN-3859. LeafQueue doesn't print user properly for application add.
Contributed by Varun Saxena.

Devaraj K 10 年之前
父节点
当前提交
b543d1a390

+ 3 - 0
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

+ 2 - 1
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() +