Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-8544 Snapshot feature Phase 2 : Further enhancements for Ozone Snapshots
  3. HDDS-11453

OmSnapshotPurge should be in a different ozone manager double buffer batch

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • 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

          Activity

            People

              swamirishi Swaminathan Balachandran
              swamirishi Swaminathan Balachandran
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: