You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2023/12/20 20:07:00 UTC
[jira] [Resolved] (HDDS-9322) Remove duplicate containers when loading volumes on a datanode
[ https://issues.apache.org/jira/browse/HDDS-9322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Attila Doroszlai resolved HDDS-9322.
------------------------------------
Fix Version/s: 1.5.0
Resolution: Fixed
> Remove duplicate containers when loading volumes on a datanode
> --------------------------------------------------------------
>
> Key: HDDS-9322
> URL: https://issues.apache.org/jira/browse/HDDS-9322
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Stephen O'Donnell
> Assignee: Stephen O'Donnell
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.5.0
>
>
> Prior to HDDS-5032, if the same container is found on multiple volumes, then the second volume to load it fails the entire volume.
> After HDDS-5032, the exception is caught so the volume doesn't fail, but depending on which container is loaded faster, either one of the replicas could win. Over several restarts, the container on either volume could be the one loaded, potentially resulting in inconsistencies.
> This change catches the error, and then removes one of the duplicates based on the BCSID. The container with the largest BCSID is the one kept, while the other is removed.
> This will free the disk space taken by the duplicate container, and also avoid the chance of a different copy being loaded on each restart.
--
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