LuciferYang opened a new pull request, #2833:
URL: https://github.com/apache/uniffle/pull/2833

   ### What changes were proposed in this pull request?
   
   | Dependency | From | To |
   |-|-|-|
   | netty | 4.1.109.Final | 4.1.141.Final |
   | netty in the spark4.1 and spark4.2 profiles | 4.2.7.Final, 4.2.13.Final | 
4.2.21.Final |
   | grpc | 1.64.0 | 1.85.1 |
   | protobuf | 3.25.1 | 3.25.9 |
   | gson | 2.10.1 | 2.14.0 |
   
   grpc-core 1.85.1 declares gson 2.14.0, and `requireUpperBoundDeps` fails on 
2.10.1. grpc also moves perfmark-api to 0.27.0, animal-sniffer-annotations to 
1.27 and proto-google-common-protos to 2.64.1. The server, coordinator, CLI and 
shaded clients bundle the same artifacts as before, so LICENSE-binary does not 
change.
   
   Netty 4.2.21 shades jctools inside netty-common, so the Spark 4.1 and 4.2 
shaded clients no longer pick up a separate jctools-core. The comment on the 
`org.jctools` relocation in the spark4 shaded pom now names the Netty releases 
that need it.
   
   ### Why are the changes needed?
   
   This closes 2 Dependabot alerts: GHSA-prj3-ccx8-p6x4 (MadeYouReset) on 
grpc-netty-shaded and GHSA-735f-pc8j-v9w8 on protobuf-java.
   
   Dependabot misses the Netty ones. The root pom declares `netty-all`, while 
the advisories are filed against Netty's submodules. In the GitHub advisory 
database, 4.1.109.Final has 64 advisories (1 critical, 34 high), 4.2.7.Final 
has 64 and 4.2.13.Final has 48. 4.1.141.Final and 4.2.21.Final have none. The 
shuffle server's gRPC port runs on the Netty inside grpc-netty-shaded, which is 
4.1.100 in grpc 1.64.0 and 4.2.17 in 1.85.1.
   
   ### Does this PR introduce _any_ user-facing change?
   
   grpc-netty-shaded uses Netty 4.2 since grpc 1.83. Netty 4.2 makes the 
adaptive allocator the default, but Uniffle passes its own 
`PooledByteBufAllocator` to the gRPC server and client, so that default does 
not apply here.
   
   One metric changes. On JDK 17, `used_direct_memory_size_by_grpc_netty` 
reported -1 with grpc 1.64.0 and reports the allocated bytes with 1.85.1. 
`used_direct_memory_size` includes it. On JDK 8 both versions report the 
allocated bytes.
   
   ### How was this patch tested?
   
   No new tests. grpc 1.75 turned off `NettyAdaptiveCumulator` and warned about 
a possible performance cost, so I ran a loopback benchmark on one machine. It 
starts a gRPC server and client with the allocator setup of `GrpcServer` and 
`GrpcClient`, then calls `sendShuffleData` (16 blocks per request) and 
`getLocalShuffleData` with a fixed payload. MB/s, mean of 2 runs of 15 seconds 
each after a 5 second warmup:
   
   | JDK | Case | grpc 1.64.0 | grpc 1.85.1 |
   |-|-|-|-|
   | 8 | send, 8 threads, 4 MB | 2204 | 2238 |
   | 8 | read, 8 threads, 4 MB | 2113 | 2065 |
   | 8 | send, 32 threads, 1 MB | 1848 | 2120 |
   | 8 | read, 32 threads, 1 MB | 2005 | 2092 |
   | 17 | send, 8 threads, 4 MB | 2277 | 2335 |
   | 17 | read, 8 threads, 4 MB | 2270 | 2392 |
   | 17 | send, 32 threads, 1 MB | 2005 | 2330 |
   | 17 | read, 32 threads, 1 MB | 2171 | 2239 |
   
   I also compared the jar lists under `server`, `coordinator` and `cli` 
`target/jars`, and the `pom.properties` in the seven shaded client jars, before 
and after. The only differences are the version changes listed above and the 
jctools change.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to