errose28 opened a new pull request #1798:
URL: https://github.com/apache/ozone/pull/1798


   ## What changes were proposed in this pull request?
   
   When an OM is put in prepare mode, a marker file is written to disk so that 
it remains in prepare mode upon restart. After an OM has been upgraded, it can 
be restarted with a --upgrade flag to automatically delete the marker file and 
take the OM out of prepare mode.
   
   This patch incorporates work in progress changes from HDDS-4610 to make sure 
that the commit transaction after prepare updates the transaction index in the 
OM DB, so it matches the index of the prepare marker file when the OM comes 
back up.
   
   ## What is the link to the Apache JIRA
   
   HDDS-4645
   
   Please replace this section with the link to the Apache JIRA)
   
   Acceptance test added.
   
   The added test uses a similar approach to the existing *upgrade* acceptance 
test to restart the OMs. All containers in the cluster write their state to 
mounted volumes, and nodes are restarted by restarting their containers. These 
restarted containers have the previous on disk state still persistent in the 
volume when it is mounted on restart.
   


----------------------------------------------------------------
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.

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