Tejaskriya opened a new pull request, #5790:
URL: https://github.com/apache/ozone/pull/5790

   ## What changes were proposed in this pull request?
   
   Trying to close a non-existent container results in an uninformative 
response like below:
   ```
   $ ozone admin container close 4
   ID #4
   ```
   The response is changed to be more meaningful, i.e., "Container with id " + 
id + " not found." in this PR.
   Moreover, the checkContainerExists method in CloseSubcommand is unnecessary 
as SCM can handle attempts to close non-existent containers when getContainer 
is called. With the current code SCM needs to be contacted for both requests, 
this is reduced to one call.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9827
   
   ## How was this patch tested?
   
   Tested manually using docker:
   ```
   $ ozone admin container close 10
   Container with id #10 not found.
   ```
   


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