BilwaST commented on a change in pull request #2239:
URL: https://github.com/apache/hadoop/pull/2239#discussion_r483937573



##########
File path: 
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/RMAdminCLI.java
##########
@@ -343,7 +343,14 @@ private int refreshQueues() throws IOException, 
YarnException {
     ResourceManagerAdministrationProtocol adminProtocol = 
createAdminProtocol();
     RefreshQueuesRequest request = 
       recordFactory.newRecordInstance(RefreshQueuesRequest.class);
-    adminProtocol.refreshQueues(request);
+    try {
+      adminProtocol.refreshQueues(request);
+    } catch (Exception e) {
+      System.out.println("Unable to issue queue refresh due to exception: "

Review comment:
       Hi @brucesw 
   I have few comments.
   1. can we change "Unable to issue queue refresh due to exception:" to 
"Unable to refresh queue due to exception:"?
   2. Pls change "Queue refresh issued successfully." to "Queue was refreshed 
successfully."
   Thanks




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

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