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

   ## What changes were proposed in this pull request?
   
   HDDS-11150. Shift Axios.all to Promise.allSettled and add fallback for error 
in failed requests
   
   Please describe your PR in detail:
   
   - Currently Axios.all() uses Promise.all() in the background, but this 
causes all further promises to reject if one request is rejected
   - So we have migrated to Promise.allSettled() which allows to wait for all 
requests to complete instead of immediately rejecting
   - Along with this new fallbacks have been added to allow data to be shown 
even if there is an error while fetching the data
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-11150
   
   ## How was this patch tested?
   Patch was tested manually
   | Screenshot | Description |
   |------------|-------------|
   | <img width="1728" alt="Screenshot 2024-07-15 at 12 13 53" 
src="https://github.com/user-attachments/assets/b8b63005-5352-4b56-b99a-3a92bc117d77";>
 | Fallback when clusterState request fails |
   |<img width="1728" alt="Screenshot 2024-07-15 at 12 18 57" 
src="https://github.com/user-attachments/assets/bb590d75-58b0-4841-ac0b-7636a43d41f8";>
 | Fallback when open keys summary fails |
   |<img width="1727" alt="Screenshot 2024-07-15 at 12 19 37" 
src="https://github.com/user-attachments/assets/68392f42-d232-470a-a647-ed7ed146fc69";>
 | Fallback when deletePending keys summary fails |


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