[
https://issues.apache.org/jira/browse/HDDS-9315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen O'Donnell resolved HDDS-9315.
-------------------------------------
Fix Version/s: 1.4.0
Resolution: Fixed
> 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
> Labels: pull-request-available
> Fix For: 1.4.0
>
>
> `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]