You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sammi Chen (Jira)" <ji...@apache.org> on 2026/01/20 14:18:00 UTC

[jira] [Created] (HDDS-14450) Update containerIds set in HddsVolume during container move

Sammi Chen created HDDS-14450:
---------------------------------

             Summary: Update containerIds set in HddsVolume during container move
                 Key: HDDS-14450
                 URL: https://issues.apache.org/jira/browse/HDDS-14450
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Sammi Chen


DefaultContainerChoosingPolicy#chooseContainer() calls ContainerController#getContainers to get the containers on one specific volume. 

Previously, all containers are included in the containerSet of ContainerController, and ContainerController#getContainers uses the containerSet to filter and return containers for specific volume. 

HDDS-13639 introduced a per volume containerIds set in HddsVolume. Every time, a container is added or removed from containerSet, extra care need be taken to add or remove containerID from containerIds for specific volume. And ContainerController#getContainers  implementation is changed from using containerSet to containerIds per HddsVolume. 

DiskBalancer add a updateContainer API in containerSet, which update an container with new ContainerData which points to new volume.  updateContainer() need to remove the old container from source volume's containerIds, and add new container to dest volume's containerIds. 





--
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