slfan1989 commented on code in PR #4614:
URL: https://github.com/apache/hadoop/pull/4614#discussion_r928174297


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/webapp/MockDefaultRequestInterceptorREST.java:
##########
@@ -279,4 +271,28 @@ public ContainersInfo getContainers(HttpServletRequest 
req, HttpServletResponse
 
     return containers;
   }
+
+  @Override
+  public NodeToLabelsInfo getNodeToLabels(HttpServletRequest hsr) throws 
IOException {
+    if (!isRunning) {
+      throw new RuntimeException("RM is stopped");
+    }
+    String cpuLabel = "CPU";
+    HashSet<String> cpuLabels = new HashSet<>();
+    cpuLabels.add(cpuLabel);
+
+    String gpuLabel = "GPU";
+    HashSet<String> gpuLabels = new HashSet<>();

Review Comment:
   Thanks for your suggestion, I will modify the code.



-- 
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