aajisaka opened a new pull request, #58909:
URL: https://github.com/apache/spark/pull/58909
### What changes were proposed in this pull request?
Fix integer overflow in GcmTransportCipher
### Why are the changes needed?
To fix shuffle error in large shuffle block (>2GB) when AES-GCM is enabled
for RPC encryption:
```
26/09/09 16:18:07 WARN
org.apache.spark.network.server.TransportChannelHandler: Exception in
connection from <host:port>
java.lang.IllegalArgumentException
at java.nio.Buffer.limit(Buffer.java:275)
at
org.apache.spark.network.crypto.GcmTransportCipher$DecryptionHandler.channelRead(GcmTransportCipher.java:458)
...
```
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Added regression tests. Also, applied the patch and ran Spark jobs with 3GB
shuffle blocks successfully in Spark on YARN cluster.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: OpenCode (GPT-5.6 Sol)
--
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]