Skip to content

HDDS-15197. Remove unnecessary BelongsToLayoutVersion annotations.#10205

Merged
errose28 merged 1 commit intoapache:HDDS-14496-zdufrom
errose28:remove-belongs-annotation
May 8, 2026
Merged

HDDS-15197. Remove unnecessary BelongsToLayoutVersion annotations.#10205
errose28 merged 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
@errose28
Copy link
Copy Markdown
Contributor Author

errose28 commented May 8, 2026

Thanks for the review @sodonnel. The reproducible build CI check timed out after 30 mins for some reason, but that passed on my fork and shouldn't be related. Going to merge this to unblock the next PR.

@errose28 errose28 merged commit 6c254b5 into apache:HDDS-14496-zdu May 8, 2026
183 of 194 checks passed
errose28 added a commit to errose28/ozone that referenced this pull request May 8, 2026
* HDDS-14496-zdu:
  HDDS-15197. Remove unnecessary BelongsToLayoutVersion annotations. (apache#10205)
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