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

   ## What changes were proposed in this pull request?
   
   This change mirrors the same fix for #11800 onto OM.
   
   When a follower OM installs a DB snapshot, the DB is replaced atomically in 
step 1, then the VERSION file is written in step 2. A crash between those two 
steps leaves:
   
       VERSION file → pre-finalization version
       DB (metaTable) → post-finalization version
   
   The Raft log replay cannot recover this because finalization happened before 
the checkpoint index.
   
   There is a second commit on this change that tidies up some left over minor 
comments from the SCM PR above and also applies the same fixes in the tests for 
OM.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16863
   
   ## How was this patch tested?
   
   New 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