Skip to content

HDDS-13699. Possible Netty version mismatch in ozone-filesystem-shaded#9052

Merged
adoroszlai merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-13699
Sep 21, 2025
Merged

HDDS-13699. Possible Netty version mismatch in ozone-filesystem-shaded#9052
adoroszlai merged 1 commit intoapache:masterfrom
adoroszlai:HDDS-13699

Conversation

@adoroszlai
Copy link
Contributor

@adoroszlai adoroszlai commented Sep 19, 2025

What changes were proposed in this pull request?

Ozone and Ratis both depend on Netty, possibly different versions. Ratis shades Netty, so version mismatch should not cause any problems. However, HDDS-12462 changed usage of Netty native libraries in Ozone FS Shaded jars, adding libs from Ozone-specific version of Netty for Ratis. This causes runtime error if Netty in Ozone is ahead of the one in Ratis, e.g. if Ozone FileSystem fat jar is used in secure environment:

NoSuchMethodError: Method org.apache.ozone.shaded.org.apache.ratis.thirdparty.io.netty.internal.tcnative.SSL.setCurvesList0(JLjava/lang/String;)Z name or signature does not match

With this PR, we add both sets of native libraries to the shaded jar.

https://issues.apache.org/jira/browse/HDDS-13699

How was this patch tested?

Reproduced the problem by upgrading Netty only in Ozone, but not in Ratis (9d099d7):
https://github.com/adoroszlai/ozone/actions/runs/17860737460

Same setup passes with the fix:
https://github.com/adoroszlai/ozone/actions/runs/17860948466

Regular CI:
https://github.com/adoroszlai/ozone/actions/runs/17860959201

@adoroszlai adoroszlai self-assigned this Sep 19, 2025
@adoroszlai adoroszlai added the build Pull request that modifies the build process label Sep 19, 2025
Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

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

+1 the change looks good.

@adoroszlai adoroszlai merged commit 0892fa5 into apache:master Sep 21, 2025
80 of 81 checks passed
@adoroszlai adoroszlai deleted the HDDS-13699 branch September 21, 2025 18:20
@adoroszlai
Copy link
Contributor Author

Thanks @szetszwo for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull request that modifies the build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants