You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Andrey Yarovoy (Jira)" <ji...@apache.org> on 2026/03/10 19:33:00 UTC
[jira] [Comment Edited] (HDDS-14800) Check DB open state during one container scanning in BackgroundContainerDataScanner
[ https://issues.apache.org/jira/browse/HDDS-14800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18064603#comment-18064603 ]
Andrey Yarovoy edited comment on HDDS-14800 at 3/10/26 7:32 PM:
----------------------------------------------------------------
DB handle needs to implement closeable interface and close DB only if there are no other handles used by concurrent threads.
checks for close would be the prone to the race conditions.
was (Author: JIRAUSER311321):
DB handle needs to implement closeable interface and close DB only if there are no other handles used by concurrent threads.
> Check DB open state during one container scanning in BackgroundContainerDataScanner
> ------------------------------------------------------------------------------------
>
> Key: HDDS-14800
> URL: https://issues.apache.org/jira/browse/HDDS-14800
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Sammi Chen
> Assignee: Priyesh K
> Priority: Major
>
> StorageVolumeChecker and BackgroundContainerDataScanner are running in parallel.
> When StorageVolumeChecker detects a volume check fails twice(configurable), it will fail the volume, close the rocksdb for this volume.
> Since BackgroundContainerDataScanner doesn't get notified for DB close, so it should check the DB open/close state during a container's scan, before calling rocksdb APIs.
--
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