[
https://issues.apache.org/jira/browse/HDDS-9315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hongbing Wang reassigned HDDS-9315:
-----------------------------------
Assignee: Hongbing Wang
> 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
> Assignee: Hongbing Wang
> Priority: Major
>
> `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]