geyanggang opened a new pull request, #15131: URL: https://github.com/apache/gravitino/pull/15131
### What changes were proposed in this pull request? Both bundles: apply `netty-bom` (4.1.140.Final) in a dedicated configuration (`isCanBeConsumed = false`, `isCanBeResolved = false`) extended only by `runtimeClasspath`, so all Netty artifacts move together and nothing is exported to dependent modules. Each bundle gets a test (`TestAwsBundleNetty`, `TestAzureBundleNetty`) that checks Netty is relocated and every `netty-*` `pom.properties` has the catalog version. `aws-bundle` (4.1.86 and 4.1.118 -> 4.1.140): - Add an artifact transform that removes the unrelocated Netty copy (4.1.86) embedded in `aws-java-sdk-bundle`. A constraint cannot replace classes inside another jar, and before this change the shadow jar mixed that copy with the standalone jars of the AWS SDK v2. The standalone jars provide every module embedded in `aws-java-sdk-bundle`, and the classes are binary compatible within 4.1. The jar keeps its file name, so the bundled legal files are generated as before. `azure-bundle` (4.1.109/4.1.110 -> 4.1.140): - The BOM also moves netty-tcnative from 2.0.65.Final to 2.0.85.Final. - `dev/release/maven`: the Apple dnsinfo source link now points to Netty 4.1.140.Final (`dnsinfo.h` and its license text are identical to 4.1.109), and `README.md` records tcnative 2.0.85.Final. The tcnative classes artifact keeps the same Netty and Tomcat Native attributions in both versions, and no native libraries are in the bundle. `.github/trivy/trivyignore.yaml`: remove the Netty 4.1.86, 4.1.109, 4.1.110 and `[email protected]` entries, which no longer appear in the bundles. NOTICE and the companion license texts are identical in Netty 4.1.118 and 4.1.140, so no other legal file changes. ### Why are the changes needed? Routine dependency maintenance: the bundles contained Netty releases older than the current 4.1.140.Final patch release. Fix: #15126 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? - `shadowJar` of both bundles: every Netty `pom.properties` is 4.1.140.Final (tcnative 2.0.85.Final in Azure; before, AWS had 4.1.86 for 8 modules and 4.1.118 for 2), no `io/netty/` entries remain, and the `aws-java-sdk-bundle` legal files are still present. - Unit tests pass for `:bundles:aws-bundle` and `:bundles:azure-bundle` (including the new tests), `:bundles:aws`, `:bundles:azure`; `spotlessCheck`, `testMavenLegalFiles`, `.github/trivy/scan.sh check-exemptions` and `node --test .github/scripts/tests/*.test.cjs` pass. `:catalogs:catalog-fileset` and `:clients:filesystem-hadoop3` test sources compile against the bundles. - `GravitinoVirtualFileSystemS3IT` (LocalStack, 9 tests) passes with the new AWS bundle. - Smoke test from the bundle jars only: the AWS SDK v2 `NettyNioAsyncHttpClient` and the Azure SDK `NettyAsyncHttpClientBuilder` each send a GET to a local HTTP server and get the response. - Not covered: TLS/HTTP2 through the Netty clients, native epoll/kqueue transports, real AWS/Azure endpoints, and the Azure integration tests (no Azurite image locally). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
