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

   ## What changes were proposed in this pull request?
   Description
   With Recon’s new schema versioning framework now integrated 
[HDDS-11465](https://issues.apache.org/jira/browse/HDDS-11465), it is essential 
to address initial schema constraints for existing tables. Previously, Recon 
lacked schema versioning, which meant there were no upgrade actions or 
mechanisms to adjust schema tables post-upgrade. This led to inconsistencies, 
especially when new enum states (like `MISSING` and `NEGATIVE_SIZE` in 
`UnHealthyContainerStates`) were introduced, as older schema versions might 
still persist despite upgrades.
   
   This ticket introduces a foundational upgrade action, 
InitialConstraintUpgradeAction, associated with the `INITIAL_VERSION` feature 
to handle any missed schema updates within the `UNHEALTHY_CONTAINERS` table. 
This upgrade action retroactively applies constraints and ensures all existing 
tables are correctly versioned. Moving forward, any updates or new metadata 
table introductions in Recon will be tracked and managed by version using the 
`ReconLayoutFeature` framework, enabling a structured upgrade process for 
future schema changes
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-11615
   ## How was this patch tested?
   Manual Testing.


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