Hongbing Wang created HDDS-9315:
-----------------------------------

             Summary: Fix comparison logic for SCMContainerPlacementCapacity.
                 Key: HDDS-9315
                 URL: https://issues.apache.org/jira/browse/HDDS-9315
             Project: Apache Ozone
          Issue Type: Bug
          Components: SCM
    Affects Versions: 1.3.0
            Reporter: Hongbing Wang


`SCMContainerPlacementCapacity#chooseNode` select less used space node through 
the following code:
{code:java}
datanodeDetails = ! firstNodeMetric.isGreater(secondNodeMetric.get()) ? 
firstNodeDetails : secondNodeDetails; {code}
More used node should be return in `SCMNodeMetric#isGreater`, rather than more 
remaining  node.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to