geyanggang opened a new pull request, #15129:
URL: https://github.com/apache/gravitino/pull/15129

   ### What changes were proposed in this pull request?
   - `bundles/aws-bundle`: apply `netty-bom` (4.1.140.Final) in a dedicated 
configuration (`isCanBeConsumed = false`, `isCanBeResolved = false`) extended 
only by `runtimeClasspath`, so all standalone Netty artifacts brought in by the 
AWS SDK v2 move together (4.1.118 -> 4.1.140) and nothing is exported to 
dependent modules.
   - `bundles/aws-bundle`: 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. The standalone jars provide every 
module embedded in `aws-java-sdk-bundle`, and the classes are binary compatible 
within 4.1, so the bundle now has one Netty release. The jar keeps its file 
name, so the bundled legal files are generated as before.
   - Add `TestAwsBundleNetty`: Netty is relocated and every `netty-*` 
`pom.properties` in the bundle has the catalog version.
   - `.github/trivy/trivyignore.yaml`: remove the Netty 4.1.86 entries and 
`[email protected]`, which no longer appear in the bundle.
   
   NOTICE and the companion license texts are identical in Netty 4.1.118 and 
4.1.140 (already recorded in `dev/release/maven/README.md`), so the Maven legal 
files need no change.
   
   ### Why are the changes needed?
   Routine dependency maintenance: the bundle contained classes and metadata of 
Netty 4.1.86 and 4.1.118, older than the current 4.1.140.Final patch release.
   
   Fix: #15126
   
   ### Does this PR introduce _any_ user-facing change?
   No. The bundle jar is about the same size and contains the same modules.
   
   ### How was this patch tested?
   - `:bundles:aws-bundle:shadowJar`: every 
`META-INF/maven/io.netty/*/pom.properties` is now 4.1.140.Final (before: 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` (including the new test), 
`:bundles:aws`, `:bundles:azure`; `spotlessCheck`, `testMavenLegalFiles` and 
`.github/trivy/scan.sh check-exemptions` pass. `:catalogs:catalog-fileset` and 
`:clients:filesystem-hadoop3` test sources compile against the bundle.
   - `GravitinoVirtualFileSystemS3IT` (LocalStack, 9 tests) passes with the new 
bundle.
   - Smoke test: from the bundle jar only, the AWS SDK v2 
`NettyNioAsyncHttpClient` sends a GET to a local HTTP server and gets the 
response.
   - Not covered: TLS/HTTP2 through the Netty client and a real AWS endpoint.
   


-- 
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]

Reply via email to