Skip to content

HDDS-15848. Add new upgrade action annotations for component versions#10744

Draft
errose28 wants to merge 1 commit into
apache:HDDS-14496-zdufrom
errose28:worktree/new-upgrade-action-annotations
Draft

HDDS-15848. Add new upgrade action annotations for component versions#10744
errose28 wants to merge 1 commit into
apache:HDDS-14496-zdufrom
errose28:worktree/new-upgrade-action-annotations

Conversation

@errose28

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

The existing upgrade action annotations only had layout feature fields. Annotation fields cannot be an interface like ComponentVersion, so create a new set of annotations to be used for upgrade actions mapped to ComponentVersions going forward. The annotations were given more descriptive names as follows:

UpgradeAction{Om,SCM,Datanode} → {Om,SCM,Datanode}UpgradeActionForLayoutFeature, {Om,SCM,Datanode}UpgradeActionForVersion

On the ZDU branch Recon's upgrade actions had been switched from LayoutFeature to ComponentVersion since it did not use both versions simultaneously. This means Recon now only needs ReconUpgradeActionForVersion and no ReconUpgradeActionForLayoutFeature was created.

Upgrade action providers were modified to load both annotations.

What is the link to the Apache JIRA

HDDS-15848

How was this patch tested?

Unit tests for the new annotations with mocked upgrade actions were added since there are currently no real upgrade actions mapped to ComponentVersions. Once there are actions added for new versions the mocks can be removed, potentially as part of HDDS-14754. Existing tests for actions mapped to layout features should continue to pass.

Pending CI on my fork

@errose28 errose28 requested a review from dombizita July 13, 2026 20:03
@errose28 errose28 added the zdu Pull requests for Zero Downtime Upgrade (ZDU) https://issues.apache.org/jira/browse/HDDS-14496 label Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

zdu Pull requests for Zero Downtime Upgrade (ZDU) https://issues.apache.org/jira/browse/HDDS-14496

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant