[
https://issues.apache.org/jira/browse/HDDS-8358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-8358.
------------------------------------
Fix Version/s: 1.4.0
Resolution: Fixed
> Fix the space usage comparator in ContainerBalancerSelectionCriteria
> --------------------------------------------------------------------
>
> Key: HDDS-8358
> URL: https://issues.apache.org/jira/browse/HDDS-8358
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: SCM
> Reporter: Siddhant Sangwan
> Assignee: Siddhant Sangwan
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.4.0
>
>
> ContainerBalancerSelectionCriteria has a Comparator
> {{orderContainersByUsedBytes}} which is used for comparing containers on the
> basis of used space. This comparator calls {{isContainerMoreUsed}}, which
> does not have consistent behaviour when used space for two containers is
> equal.
> This bug was exposed when fixing the setup of {{TestContainerBalancerTask}}.
> {{createReplicasForContainers()}} in {{TestContainerBalancerTask}} creates
> additional container replicas but does not add them to
> {{datanodeToContainersMap}}, the map being used to track these. This jira
> intends to fix the bug and the test setup.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]