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

   ## What changes were proposed in this pull request?
   
   `SCMContainerPlacementCapacity#chooseNode` select less used space node 
through the following code:
   ```java
   datanodeDetails = ! firstNodeMetric.isGreater(secondNodeMetric.get()) ? 
firstNodeDetails : secondNodeDetails; 
   ```
   More used node should be return in `SCMNodeMetric#isGreater`, rather than 
more remaining  node.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9315
   
   ## How was this patch tested?
   
   TestDatanodeMetrics 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