errose28 opened a new pull request, #9897:
URL: https://github.com/apache/ozone/pull/9897
## What changes were proposed in this pull request?
- Create the `ComponentVersionManager` class which tracks apparent version,
software version, and finalization status using the new unified version
framework based around component version.
- Subclasses for OM and HDDS handle specific initialization requirements
based on the serialized version read from disk.
- Add a `nextVersion` method to all `ComponentVersions` which points from
the current version to the one immediately following it for use when finalizing.
- Make `HDDSLayoutFeature` and `OMLayoutFeature`'s last version's
`nextVersion` implementations point to `HDDSVersion#ZDU` and
`OzoneManagerVersion#ZDU` respectively to handle the transition from layout
feature to component version during finalization.
- This method means that the same `ComponentVersionManager` implementation
will work whether or not we are finalized for ZDU, because it can depend on the
`nextVersion` call to transparently make the switch when finalizing.
A follow-up change will switch the current upgrade path from using
`AbstractLayoutVersionManager` and its subclasses to the new
`ComponentVersionManager`.
## What is the link to the Apache JIRA
HDDS-14732
## How was this patch tested?
Leaving as draft until unit tests for the changes are added.
Existing tests should be unaffected since the existing layout version
managers are still connected to the main upgrade path.
--
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]