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

   ## What changes were proposed in this pull request?
   This PR enhances the ReconLayoutVersionManager to ensure upgrade actions and 
schema version updates occur together in a single transaction, preventing 
inconsistent states.
   
   Key Changes:
   
   1. **Transactional Handling**: Upgrade actions and schema updates are 
wrapped in a single transaction.
   Schema updates only commit if the action succeeds; otherwise, changes are 
rolled back.
   
   2. **Enhanced updateSchemaVersion**: Modified to accept a Connection for 
transaction consistency, aligning with the transactional scope of 
finalizeLayoutFeatures.
   
   System Behavior with Latest Changes:
   - When Upgrade Action Fails: The upgrade action is attempted within a 
transaction. If it fails, the transaction is rolled back, no changes are made, 
and the system logs the error. This prevents partial upgrades and preserves the 
existing schema state.
   - When Schema Update Fails: If updating the schema version fails The 
transaction (including any preceding upgrade changes) is rolled back. This 
ensures no changes are committed, maintaining consistency and preventing 
partial updates.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-11716
   
   ## How was this patch tested?
   
   


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