Skip to content

HDDS-15197. Remove unnecessary BelongsToLayoutVersion annotations.#10205

Open
errose28 wants to merge 1 commit intoapache:HDDS-14496-zdufrom
errose28:remove-belongs-annotation
Open

HDDS-15197. Remove unnecessary BelongsToLayoutVersion annotations.#10205
errose28 wants to merge 1 commit intoapache:HDDS-14496-zdufrom
errose28:remove-belongs-annotation

Conversation

@errose28
Copy link
Copy Markdown
Contributor

@errose28 errose28 commented May 6, 2026

What changes were proposed in this pull request?

The @BelongsTo[HDDS]LayoutVersion annotations are largely unused, and have minimal built in handling. To simplify the options for developers using the framework, avoid confusion, and reduce the amount items to track for ZDU, we should remove them.

Currently the only usage in DatanodeDetails incorrectly brings server side layout features into the client dependency scope in hdds-common. In this change equivalent functionality is achieved with the existing server side VersionedDatanodeFeatures utility class which is used in other places to handle version specific formatting. This sets us up to remove all server side upgrade functionality from hdds-common in HDDS-15196.

What is the link to the Apache JIRA

HDDS-15197

How was this patch tested?

Refactor and delete only, existing tests pass on my fork.

@errose28 errose28 added the zdu Pull requests for Zero Downtime Upgrade (ZDU) https://issues.apache.org/jira/browse/HDDS-14496 label May 6, 2026
@errose28 errose28 requested review from dombizita and sodonnel May 6, 2026 23:01
@errose28 errose28 marked this pull request as ready for review May 7, 2026 13:02
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