Skip to content

HDDS-15377. Switch SCM to use new ScmVersionManager#10368

Draft
errose28 wants to merge 3 commits into
apache:HDDS-14496-zdufrom
errose28:scm-version-manager-wire
Draft

HDDS-15377. Switch SCM to use new ScmVersionManager#10368
errose28 wants to merge 3 commits into
apache:HDDS-14496-zdufrom
errose28:scm-version-manager-wire

Conversation

@errose28
Copy link
Copy Markdown
Contributor

@errose28 errose28 commented May 26, 2026

DRAFT Requires #10366 and #10367 to be merged. This PR contains those changes as well.

What changes were proposed in this pull request?

Switch SCM to use the new version manager added in #10367. This also makes changes to SCMNodeManager, which is comparing Datanode and SCM versions to determine whether Datanodes should finalize. Handling for the full matrix of allowable Datanode versions based on SCM version and finalization state will be implemented in a later PR. Minor Recon changes were also made since Recon and SCM share some code around node management.

The existing FinalizationManager/FinalizationStateManager classes were kept to maintain consistency with other SCM ratis-based state managers like container/node/pipeline [state] manager. The scope of these was reduced so FinalizationManager is only responsible for upgrade finalization via ratis request or snapshot, and uses the ScmVersionManager internally. All other version related queries use ScmVersionManager directly to be consistent with use in OM and Datanode and avoid unnecessary wrapper methods.

What is the link to the Apache JIRA

HDDS-15377

How was this patch tested?

Existing upgrade finalization tests should pass. Some improvements were made to TestScmHAFinalization to clarify the conditions being waited on while SCM is finalizing.

errose28 and others added 3 commits May 26, 2026 15:16
…inology

Co-authored-by: Cursor <cursoragent@cursor.com>
…ctor OMVersionManager

Co-authored-by: Cursor <cursoragent@cursor.com>
…ization

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions github-actions Bot added the zdu Pull requests for Zero Downtime Upgrade (ZDU) https://issues.apache.org/jira/browse/HDDS-14496 label May 26, 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