[
https://issues.apache.org/jira/browse/HDDS-14800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18064603#comment-18064603
]
Andrey Yarovoy commented on HDDS-14800:
---------------------------------------
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: [email protected]
For additional commands, e-mail: [email protected]