You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Swaminathan Balachandran (Jira)" <ji...@apache.org> on 2025/11/26 10:39:00 UTC
[jira] [Created] (HDDS-14015) Atomic Switch of Snapshot db after defrag should be done under a SNAPSHOT_DB_LOCK
Swaminathan Balachandran created HDDS-14015:
-----------------------------------------------
Summary: Atomic Switch of Snapshot db after defrag should be done under a SNAPSHOT_DB_LOCK
Key: HDDS-14015
URL: https://issues.apache.org/jira/browse/HDDS-14015
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Swaminathan Balachandran
Assignee: Swaminathan Balachandran
A snapshot handle present inside a snapshot cache can be reused. Once the snapshot content lock is taken a rocksdb handle could be still present in the snapshot cache and after the atomic switch the old db handle could still get reused for writes thus missing potential writes on the newly switched db. Hence while performing the move directory a snapshot cache lock should be acquired to ensure the next db handle would always be from the new rocksdb handle.
--
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