← Back to Pull requests

[SPARK-60996][BUILD] Upgrade Netty to 4.2.20.Final #60166

Closed
unknown closed this pull request without merging on Nov 06, 2026 16:23 UTC
View on GitHub
unknown unknown commented on Nov 06, 2026 06:42 UTC
Author

What changes were proposed in this pull request?

This PR aims to upgrade Netty to 4.2.20.Final, together with netty-tcnative to 2.0.85.Final, which is the release Netty 4.2.20.Final depends on.

  • pom.xml: bump netty.version to 4.2.20.Final and netty-tcnative.version to 2.0.85.Final

  • dev/deps/spark-deps-hadoop-3-hive-2.3: update the Netty and netty-tcnative jar entries accordingly
  • Why 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 in netty-codec-http2, insufficient control character neutralization in netty-codec-http, and insufficient entropy in netty-resolver-dns, along with many other bug fixes.

  • Release notes: https://github.com/netty/netty/releases/tag/netty-4.2.20.Final (released on 2026-11-02)

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

  • Full changelog: https://github.com/netty/netty/compare/netty-4.2.19.Final...netty-4.2.20.Final
  • Netty 4.2.20.Final declares netty-tcnative 2.0.85.Final (4.2.19.Final declared 2.0.84.Final), and Spark pins netty-tcnative.version separately. 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-tcnative 2.0.85.Final.

    How was this patch tested?

    Pass the CIs. In addition, verified locally that build/sbt network-common/compile succeeds with the new versions.

    Was this patch authored or co-authored using generative AI tooling?

    Generated-by: Claude Sonnet 5.5

    Diff: 382 lines (+286 / -96) across 4 files Reviewer: peter-toth Review duration: 580m
    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
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 43.0% (MEDIUM) · Higher = larger blast radius
    43.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.0% · Safe to merge
    17.0%
    Repository