[SPARK-60996][BUILD] Upgrade Netty to 4.2.20.Final #60166
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 382 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.356
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #60166"
general
weight: 0.35
peter-toth
What changes were proposed in this pull request?
This PR aims to upgrade Netty to 4.2.20.Final, together with
netty-tcnativeto 2.0.85.Final, which is the release Netty 4.2.20.Final depends on.pom.xml: bumpnetty.versionto4.2.20.Finalandnetty-tcnative.versionto2.0.85.Finaldev/deps/spark-deps-hadoop-3-hive-2.3: update the Netty andnetty-tcnativejar entries accordinglyWhy are the changes needed?
To bring in the latest bug and security fixes of the 4.2.x line. Netty 4.2.20.Final includes fixes for multiple security advisories, for example out-of-bounds reads in
netty-buffer, unbounded memory usage innetty-codec-http2, insufficient control character neutralization innetty-codec-http, and insufficient entropy innetty-resolver-dns, along with many other bug fixes.- https://github.com/netty/netty/security/advisories/GHSA-m77g-r4c7-3w77 - out-of-bounds read in netty-buffer
- https://github.com/netty/netty/security/advisories/GHSA-v2v6-vch9-4pcg - inefficient CPU computation in netty-codec-http3
- https://github.com/netty/netty/security/advisories/GHSA-rx4g-qxm6-238r - out-of-bounds read in netty-buffer
- https://github.com/netty/netty/security/advisories/GHSA-cqmg-wc9g-fpj8 - insufficient entropy in netty-resolver-dns
- https://github.com/netty/netty/security/advisories/GHSA-hc9x-r52h-gh4x - unbounded memory usage in netty-codec-http2
- https://github.com/netty/netty/security/advisories/GHSA-42mp-m8rq-6rgj - insufficient control character neutralization in netty-codec-http
- https://github.com/netty/netty/security/advisories/GHSA-w53r-xhgx-8582 - use-after-free in netty-codec-classes-quic
- https://github.com/netty/netty/security/advisories/GHSA-qhw9-p586-v948 - out-of-bounds read in netty-buffer
- https://github.com/netty/netty/security/advisories/GHSA-84gx-4cj4-rm7q - unbounded memory usage in netty-codec-mqtt
- https://github.com/netty/netty/security/advisories/GHSA-6xv6-9mgg-mfvc - mTLS auth bypass via session resumption in netty-handler and netty-codec-quic
Netty 4.2.20.Final declares
netty-tcnative2.0.85.Final (4.2.19.Final declared 2.0.84.Final), and Spark pinsnetty-tcnative.versionseparately. So it is upgraded in this PR to keep the pair Netty expects, which matters for the opt-in OpenSSL path (spark.ssl.rpc.openSslEnabled=true).Does this PR introduce _any_ user-facing change?
No behavior change is expected. This is a dependency patch upgrade, but users who bundle or rely on the Netty version shipped with Spark will see 4.2.20.Final and
netty-tcnative2.0.85.Final.How was this patch tested?
Pass the CIs. In addition, verified locally that
build/sbt network-common/compilesucceeds with the new versions.Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Sonnet 5.5