swamirishi opened a new pull request, #7188:
URL: https://github.com/apache/ozone/pull/7188

   ## What changes were proposed in this pull request?
   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.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-11453
   
   ## How was this patch tested?
   Changed existing unit tests.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to