[
https://issues.apache.org/jira/browse/HDDS-15654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sreeja reassigned HDDS-15654:
-----------------------------
Assignee: Sreeja
> withinThresholdUtilizedNodes never cleared between iterations
> --------------------------------------------------------------
>
> Key: HDDS-15654
> URL: https://issues.apache.org/jira/browse/HDDS-15654
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Ashish Kumar
> Assignee: Sreeja
> Priority: Major
> Labels: container-balancer
>
>
> {code:java}
> private void resetState() {
> moveManager.resetState();
> this.overUtilizedNodes.clear();
> this.underUtilizedNodes.clear(); // cleared
> // withinThresholdUtilizedNodes.clear() ← MISSING
> this.containerToSourceMap.clear(); {code}
> Each call to {{initializeIteration()}} adds new nodes to
> {{withinThresholdUtilizedNodes}} without ever removing stale ones. If a node
> moves from "within threshold" to "over/under" in a later iteration, it
> remains in {{withinThresholdUtilizedNodes}} from the previous iteration.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]