You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Priyesh K (Jira)" <ji...@apache.org> on 2026/03/18 07:31:00 UTC
[jira] [Created] (HDDS-14856) Guard ManagedRocksDB direct iterators against concurrent DB close (follow-up to HDDS-14800)
Priyesh K created HDDS-14856:
--------------------------------
Summary: Guard ManagedRocksDB direct iterators against concurrent DB close (follow-up to HDDS-14800)
Key: HDDS-14856
URL: https://issues.apache.org/jira/browse/HDDS-14856
Project: Apache Ozone
Issue Type: Improvement
Reporter: Priyesh K
HDDS-14800 fixed a TOCTOU race condition for the main volume iterator path by having {{ManagedRocksIterator}} hold the {{RocksDatabase}} reference counter for the full lifetime of the iterator. This prevents the DB from being physically destroyed while the iterator is in use.
However, the fix only applies to iterators created through {{{}RocksDatabase.newIterator(){}}}. Several components bypass this layer and call {{ManagedRocksDB.get().newIterator()}} directly, so the counter is never acquired and the same race window exists for those iterators.
--
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