← Back to Pull requests

build: upgrade fastutil to 8.5.19 #20771

Closed
unknown closed this pull request without merging on Oct 30, 2026 04:52 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 13:43 UTC
Author

Description

Upgrades fastutil from 8.5.4 to 8.5.19, split out of #20765 because it needs code changes:

  • fastutil 8.5.19 is self-contained and no longer depends on fastutil-core, so modules declare fastutil instead.

  • IntArrayList#grow(int) is now public, so DruidIntList drops its private copy.

  • Tree maps and sets now reject null keys:

  • - array_overlap with a constant array uses java.util.TreeSet instead of ObjectAVLTreeSet.
    - SortedDimensionDictionary and ComparatorSortedDimensionDictionary sort an int[] of ids instead of building an Object2IntRBTreeMap, so null needs no special handling.

    The new dictionary sort is also faster and allocates less (JMH, 1M values):

    | Class | Type | Tree map(original) | This PR | Allocation |
    | --- | --- | --- | --- | --- |
    | ComparatorSortedDimensionDictionary | STRING | 1210 ms | 512 ms | 74 MB → 12 MB |
    | SortedDimensionDictionary | STRING | 1183 ms | 458 ms | 54 MB → 12 MB |
    | SortedDimensionDictionary | LONG | 964 ms | 270 ms | 54 MB → 12 MB |

    <hr>

    This PR has:

  • been self-reviewed.

  • added or updated version, license, or notice information in licenses.yaml

  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • Diff: 178 lines (+133 / -45) across 2 files Reviewer: amaechler Review duration: 2349m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 178 lines diff across 2 files
    0.35
    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.310
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #20771"
    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: 35.5% (MEDIUM) · Higher = larger blast radius
    35.5%
    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: 14% · Safe to merge
    14%
    Repository