Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
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.
Attachments
Issue Links
- is required by
-
HDDS-8170 Let ContainerBalancer consider EC containers for balancing
- Resolved
- links to