[
https://issues.apache.org/jira/browse/HDDS-14450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-14450:
----------------------------------
Labels: pull-request-available (was: )
> 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
> Assignee: Sammi Chen
> Priority: Major
> Labels: pull-request-available
>
> 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: [email protected]
For additional commands, e-mail: [email protected]