Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Since purgeSnapshot transaction on a standalone basis is an idempotent operation. Once the directory gets deleted the previous transactions that have been performed on the snapshotted rocksdb would start failing on replay since those transactions have not been committed but the directory could have been partially deleted/ fully deleted. This could also lead to inconsistencies in the DB reads from the purged rocksdb if operations are not performed consciously.
Creating a separate rocksdb batch in ozone manager double buffer will ensure all transactions before have been flushed to the disk before purging the rocksdb, ensuring the previous ratis transactions will never get replayed.
Attachments
Issue Links
- links to