Details
-
Sub-task
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
Description
When running TestHDDSUpgrade integration tests, we can see the following log messages indicating the upgrade actions were registered:
INFO upgrade.HDDSLayoutVersionManager (HDDSLayoutVersionManager.java:lambda$registerUpgradeActions$0(76)) - Registering Upgrade Action : ScmHAFirstUpgradeLayoutChangeAction INFO upgrade.HDDSLayoutVersionManager (HDDSLayoutVersionManager.java:lambda$registerUpgradeActions$0(76)) - Registering Upgrade Action : ScmHAUnfinalizedStateValidationAction INFO upgrade.HDDSLayoutVersionManager (HDDSLayoutVersionManager.java:lambda$registerUpgradeActions$0(76)) - Registering Upgrade Action : ScmOnFinalizeActionForDatanodeSchemaV2 INFO upgrade.HDDSLayoutVersionManager (HDDSLayoutVersionManager.java:lambda$registerUpgradeActions$0(76)) - Registering Upgrade Action : DatanodeSchemaV2FinalizeAction
(Side note, we may want to come up with a naming convention for these so it's easier to tell what is what)
The logs do not show the messages for the on finalize actions for schema V2 on either the datanode or SCM, indicating they are not actually being run. Currently both these operations are no-ops so no breaking behavior was noticed. We do not yet have any on finalize actions that do real work.
The testing for upgrade actions registering and running uses a fair amount of mocking, which may miss cases that come up for the actual upgrade actions. We should verify that all upgrade actions get registered and run correctly as part of this Jira, and maybe implement more robust testing.
Attachments
Issue Links
- blocks
-
HDDS-5432 Enable downgrade testing after 1.1.0 release
- Resolved
- links to