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

   ## What changes were proposed in this pull request?
   
   1. Fix list snapshot API. Let it list the correct snapshot when there are 
more than one buckets.
   2. Throw an exception when listing a non-existent bucket.
   3. Add a assertion in `testListSnapshot` for listing a non-existent bucket.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-7512
   
   ## How was this patch tested?
   
   The following is a manual test on docker for listing correct snapshot:
   ![螢幕快照 2022-11-23 
10-26-37](https://user-images.githubusercontent.com/65023303/203458307-ba5ef215-7e7c-43ba-a109-7df98ca275d6.png)
   
   The following is a manual test on docker for listing a non-existent bucket:
   ![螢幕快照 2022-11-23 
10-29-18](https://user-images.githubusercontent.com/65023303/203458613-390d4f09-7145-4f5a-8c30-ad198c553d31.png)
   
   The following is the unit test: 
   ![螢幕快照 2022-11-23 
10-43-15](https://user-images.githubusercontent.com/65023303/203460012-494f6aef-c1be-4e9d-9115-2d0fd7e07ad0.png)
   
   


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