Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5444 Ozone Upgrades vNext
  3. HDDS-5503

On finalize upgrade actions not running

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              markgui Mark Gui
              erose Ethan Rose
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: