You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siddhant Sangwan (Jira)" <ji...@apache.org> on 2024/04/17 08:36:00 UTC

[jira] [Resolved] (HDDS-7252) Polled source Datanodes are wrongly not re-considered for balancing in Container Balancer

     [ https://issues.apache.org/jira/browse/HDDS-7252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siddhant Sangwan resolved HDDS-7252.
------------------------------------
    Fix Version/s: 1.5.0
       Resolution: Fixed

> Polled source Datanodes are wrongly not re-considered for balancing in Container Balancer
> -----------------------------------------------------------------------------------------
>
>                 Key: HDDS-7252
>                 URL: https://issues.apache.org/jira/browse/HDDS-7252
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: SCM
>            Reporter: Siddhant Sangwan
>            Assignee: Tejaskriya Madhan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.5.0
>
>
> The FindSourceGreedy class maintains a priority queue of source datanodes. This class is used to get the next source DN for balancing. According to current design, a datanode can be involved in multiple source->target pairings in one iteration of container balancer.
> When FindSourceGreedy#getNextCandidateSourceDataNode() is called during an iteration, it polls a DN from the queue. This DN is re queued when FindSourceGreedy#increaseSizeLeaving is called. Problem is that if ContainerBalancer#moveContainer returns false, then increaseSizeLeaving will not be called and the DN doesn't get added back.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org