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

   ## What changes were proposed in this pull request?
   HDDS-111349. Add NullPointer handling when Volumes table is not initialized.
   
   Please describe your PR in detail:
   * Currently if we call the /volumes API while the Volumes table is being 
initialized it returns a 500 error.
   * This PR will add the handling of this scenario
   * After this change, if we call `/volumes` endpoint before the table is 
completely initialized, it will return
   ```
   {
     totalCount: 0,
     volumes: []
   }
   ```
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-11349
   
   ## How was this patch tested?
   It was tested using unit tests and also manually verifying the response is 
properly returned.
   <img width="1723" alt="Screenshot 2024-08-21 at 12 07 52" 
src="https://github.com/user-attachments/assets/59b809fa-57da-4fb9-85fb-fbbbfbc0c45d";>
   


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