Skip to content

HDDS-14753. Do not prematurely serialize client version - #10936

Open
errose28 wants to merge 1 commit into
apache:HDDS-14496-zdufrom
errose28:worktree/HDDS-14753-serialization-changes
Open

HDDS-14753. Do not prematurely serialize client version#10936
errose28 wants to merge 1 commit into
apache:HDDS-14496-zdufrom
errose28:worktree/HDDS-14753-serialization-changes

Conversation

@errose28

@errose28 errose28 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

In the new versioning framework, the ClientVersion class should be used within the java code, and only delegate to ClientVersion#serialize/deserialize at the translation layers of the client and server. This PR updates existing usage of ClientVersion to follow this practice. The main change was in the protobuf translators for DatanodeDetails, which now take a ClientVersion and call serialize since those methods are already in charge of serialization. This creates a ripple effect to classes that use DatanodeDetails which have been updated to pass it a ClientVersion instead of serializing the version themselves before passing it in.

Many files were touched, but it is a simple substitution that does not amount in a large number of lines changed.

What is the link to the Apache JIRA

HDDS-14753

How was this patch tested?

No functional change. All existing tests should pass. Changes do not affect protobuf/disk/wire protocols

@github-actions github-actions Bot added the zdu Pull requests for Zero Downtime Upgrade (ZDU) https://issues.apache.org/jira/browse/HDDS-14496 label Aug 3, 2026
@errose28

errose28 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

cc @octachoron

@errose28 errose28 changed the title HDDS-14753. Check if existing translation layers should use int or enum component version HDDS-14753. Do not prematurely serialize client version Aug 4, 2026
@errose28
errose28 marked this pull request as ready for review August 4, 2026 17:51
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