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

   ## What changes were proposed in this pull request?
   Improvements done for `SCMNodeManager#getNodeStatistics`:
   
   - avoid repeated `getAllNodes()` calls, store and reuse the list
   - avoid repeated iteration of nodes for `nodeStateStatistics` (by each 
`get...NodeCount()` method)
   - `nodeUsageStatistics` may base its calculations on values aggregated by 
`nodeSpaceStatistics` instead of iterating storage reports itself
   
   ## What is the link to the Apache JIRA
   [HDDS-14018](https://issues.apache.org/jira/browse/HDDS-14018)
   
   ## How was this patch tested?
   All the tests in `TestSCMNodeManager` passed.
   


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