avijayanhwx opened a new pull request #1430:
URL: https://github.com/apache/hadoop-ozone/pull/1430


   ## What changes were proposed in this pull request?
   
   Through HDDS-4143, we have a generic factory to handle multiple versions of 
apply transaction implementations based on layout version. Hence, this factory 
can be used to handle versioned requests across layout versions, whenever both 
the versions need to exist in the code (Let's say for HDDS-2939).
   
   However, it has been noticed that the OM ratis requests are still undergoing 
lot of minor changes (HDDS-4007, HDDS-4007, HDDS-3903), and in these cases it 
will become hard to maintain 2 versions of the code just to support clean 
upgrades.
   
   Hence, this patch adds a pre-upgrade utility (client API) that makes sure 
that an OM instance has no "un-applied" transactions in this Raft log. Invoking 
this client API makes sure that the upgrade starts with a clean state. Of 
course, this would be needed only in a HA setup. In a non HA setup, this can 
either be skipped, or when invoked will be a No-Op (Non Ratis) or cause no harm 
(Single node Ratis).
   
   More details in JIRA.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-4227
   
   ## How was this patch tested?
   Manually tested.
   Unit/Acceptance tests pending.


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