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


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/webapp/FederationInterceptorREST.java:
##########
@@ -827,7 +828,7 @@ public AppsInfo getApps(HttpServletRequest hsr, String 
stateQuery,
     });
 
     if (apps.getApps().isEmpty()) {
-      return null;
+      return new AppsInfo();

Review Comment:
   After comparing the results from the ResourceManager (RM), if it doesn't 
return any results, we should return an empty object instead of null.



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