Skip to content

HDDS-16024. Make OM and SCM proto finalization status an enum - #10902

Merged
errose28 merged 3 commits into
apache:HDDS-14496-zdufrom
errose28:worktree/finalization-status-enum
Aug 3, 2026
Merged

HDDS-16024. Make OM and SCM proto finalization status an enum#10902
errose28 merged 3 commits into
apache:HDDS-14496-zdufrom
errose28:worktree/finalization-status-enum

Conversation

@errose28

@errose28 errose28 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Use enum instead of boolean to indicate finalization status from SCM and OM to Clients. This allows us to use a more descriptive "in progress" state when only some datanodes are finalized and OM is waiting. It also allows more states to be added in the future if needed.

What is the link to the Apache JIRA

HDDS-16024

How was this patch tested?

  • Existing unit and integration tests updated
  • New tests added for intermediate in-progress enum state

@errose28
errose28 requested a review from dombizita July 30, 2026 00:12
@errose28 errose28 added the zdu Pull requests for Zero Downtime Upgrade (ZDU) https://issues.apache.org/jira/browse/HDDS-14496 label Jul 30, 2026
@errose28
errose28 marked this pull request as ready for review July 31, 2026 00:40

@dombizita dombizita left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ethan, overall it looks good to me, I just have two questions about the possibilities of the statuses.

@dombizita dombizita left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comments in the code, looks good to me!

@errose28
errose28 merged commit 4cd5c36 into apache:HDDS-14496-zdu Aug 3, 2026
45 checks passed
errose28 added a commit to errose28/ozone that referenced this pull request Aug 3, 2026
…dation

* HDDS-14496-zdu:
  HDDS-16024. Make OM and SCM proto finalization status an enum (apache#10902)
  HDDS-14754. Add ZDU upgrade action to clean up leftover state (apache#10889)
  HDDS-16023. Create OM request versioning annotations compatible with new versioning framework (apache#10903)

Conflicts:
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/server/TestSCMClientProtocolServer.java
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.

2 participants