goiri commented on code in PR #4610:
URL: https://github.com/apache/hadoop/pull/4610#discussion_r928058366


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestRouterYarnClientUtils.java:
##########
@@ -610,4 +618,138 @@ public void testMergeResourceProfile() {
     Assert.assertEquals(3, resource.getVirtualCores());
     Assert.assertEquals(3072, resource.getMemorySize());
   }
+
+  @Test
+  public void testMergeAttributesToNodesResponse() {

Review Comment:
   
./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestRouterYarnClientUtils.java:629:
    NodeToAttributeValue attributeValue1 = 
NodeToAttributeValue.newInstance("node1", gpu.getAttributeValue());: Line is 
longer than 100 characters (found 110). [LineLength]
   
./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestRouterYarnClientUtils.java:639:
    NodeToAttributeValue attributeValue2 = 
NodeToAttributeValue.newInstance("node2", docker.getAttributeValue());: Line is 
longer than 100 characters (found 113). [LineLength]
   
./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestRouterYarnClientUtils.java:645:
    GetAttributesToNodesResponse response3 = 
GetAttributesToNodesResponse.newInstance(new HashMap<>());: Line is longer than 
100 characters (found 103). [LineLength]
   
./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestRouterYarnClientUtils.java:675:
        NodeAttributeInfo.newInstance(NodeAttributeKey.newInstance("GPU"), 
NodeAttributeType.STRING);: Line is longer than 100 characters (found 101). 
[LineLength]
   
./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestRouterYarnClientUtils.java:678:
    GetClusterNodeAttributesResponse response1 = 
GetClusterNodeAttributesResponse.newInstance(attributes1);: Line is longer than 
100 characters (found 107). [LineLength]
   
./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestRouterYarnClientUtils.java:682:
        NodeAttributeInfo.newInstance(NodeAttributeKey.newInstance("CPU"), 
NodeAttributeType.STRING);: Line is longer than 100 characters (found 101). 
[LineLength]
   
./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestRouterYarnClientUtils.java:685:
    GetClusterNodeAttributesResponse response2 = 
GetClusterNodeAttributesResponse.newInstance(attributes2);: Line is longer than 
100 characters (found 107). [LineLength]
   
./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestRouterYarnClientUtils.java:688:
    GetClusterNodeAttributesResponse response3 = 
GetClusterNodeAttributesResponse.newInstance(new HashSet<>());: Line is longer 
than 100 characters (found 111). [LineLength]
   
./hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestRouterYarnClientUtils.java:731:
    GetNodesToAttributesResponse response3 = 
GetNodesToAttributesResponse.newInstance(new HashMap<>());: Line is longer than 
100 characters (found 103). [LineLength]



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to