浏览代码

YARN-3716. Node-label-expression should be included by ResourceRequestPBImpl.toString. (Xianyin Xin via wangda)

Wangda Tan 10 年之前
父节点
当前提交
788bfa0359

+ 3 - 0
hadoop-yarn-project/CHANGES.txt

@@ -461,6 +461,9 @@ Release 2.8.0 - UNRELEASED
     YARN-3632. Ordering policy should be allowed to reorder an application when
     demand changes. (Craig Welch via jianhe)
 
+    YARN-3716. Node-label-expression should be included by 
+    ResourceRequestPBImpl.toString. (Xianyin Xin via wangda)
+
 Release 2.7.1 - UNRELEASED
 
   INCOMPATIBLE CHANGES

+ 2 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/api/records/impl/pb/ResourceRequestPBImpl.java

@@ -184,7 +184,8 @@ public class ResourceRequestPBImpl extends  ResourceRequest {
     return "{Priority: " + getPriority() + ", Capability: " + getCapability()
         + ", # Containers: " + getNumContainers()
         + ", Location: " + getResourceName()
-        + ", Relax Locality: " + getRelaxLocality() + "}";
+        + ", Relax Locality: " + getRelaxLocality()
+        + ", Node Label Expression: " + getNodeLabelExpression() + "}";
   }
 
   @Override