← Back to Pull requests

chore(inkless:release): cherry-pick main changes into inkless-4.2 for 0.52 #891

Closed
unknown closed this pull request without merging on Nov 23, 2026 11:37 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 11:27 UTC
Author

Cherry-picks the 23 commits that main gained since inkless-release-0.51 into inkless-4.2 for the 0.52 release. No upstream sync is included: 4.2 already holds the upstream version of 0.51.

The last commit, sync(compile), adapts the picked changes to the 4.2 APIs: the Scala inWriteLock and HostedPartition, MetadataDelta.Builder, FullFetchContext, and KRaftMetadataCache in kafka.server.metadata. It also lets checkstyle skip the statement count check for RemoteLogManager (102 against 100) and the class fan-out check for InklessTopicTypeSwitcherClusterTest (55 against 52).

Conflicts resolved while picking:

  • #857: the lastClassicLeaderEpoch tag goes in the Scala KRaftMetadataCache, and the two UnifiedLog truncation count tests move to the Scala UnifiedLogTest. Tests call the 3-argument TierStateMachine.start through a helper.

  • #876: InitDisklessLogState takes the new producer state extraction.

  • #866, #870, #875, #878: import and helper differences only.
  • Commits

  • docs(inkless:release): add 0.51 changelog and cherry-pick sessions (#858)

  • fix(inkless:ci): continue when the Env step cannot dump the github context (#862)

  • fix(inkless:switch): route pending-upload offsets to the classic log (#861)

  • fix(inkless:consolidation): keep diskless leader epoch across leader changes [KC-727] (#864)

  • fix(inkless:switch): recreate phase 2 replicas that don't hold the committed classic prefix [KC-702] (#857)

  • fix(inkless:switch): advance a follower's high watermark to the seal when it applies the seal (#866)

  • fix(inkless:switch): cap tiered reads at the seal [KC-739] (#867)

  • fix(inkless:release): add an upstream sync to a published release (#865)

  • fix(inkless:switch): defer timestamp ListOffsets below the diskless log start [KC-761] (#870)

  • docs(inkless:switch): describe the last-known-leader election in phase 1 [KC-759] (#871)

  • test(inkless:switch): run switch system tests with consolidation and cover faults before phase 2 [KC-747] (#869)

  • fix(inkless:build): omit commitId in make build_release outside git (#856)

  • fix(inkless:delete): skip file cleaner ticks during backoff instead of sleeping [KC-349] (#795)

  • fix(inkless:switch): serve pending ListOffsets from the classic log and defer lookups past a stale high watermark [KC-756] [KC-763] (#873)

  • perf(inkless:metadata): read topic type flags without copying the topic config (#875)

  • fix(inkless:switch): abort open transactions only on the leader at the switch [KC-753] (#874)

  • refactor(inkless:switch): replace the seal and repair commands with rearm and lower-seal (#872)

  • fix(inkless:switch): skip ISR expansion while a phase 1 leader's log ends below the seal [KC-773] (#880)

  • fix(inkless:switch): keep a failing partition from stalling the diskless log init of others [KC-748] [KC-750] [KC-757] (#876)

  • fix(inkless:switch): print partitions whose ListOffsets fails in topic switch state [KC-840] (#881)

  • feat(inkless:storage): add per-role storage config overrides (#879)

  • fix(inkless:switch): seal and register a pending partition in the first delta after a restart [KC-752] (#877)

  • feat(inkless:metrics): publish partition rate distributions per broker [KC-766] (#878)

  • sync(compile): adapt cherry-picked changes to the 4.2 APIs
  • See the commit messages for the reasoning behind each change.

    Release notes

  • New Flyway migration V32 drops the repair_diskless_log function (#872).

  • New per-role storage config overrides (#879) and per-broker partition rate metrics (#878). The configs and metrics docs are in the picked commits.
  • Testing

    The storage:inkless unit and integration tests, the metadata controller tests, and the core Inkless and Diskless suites pass. InklessControlPlaneOutageClusterTest fails intermittently in the full run and passes alone.

    [KC-727]: https://aiven.atlassian.net/browse/KC-727?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 496 lines (+372 / -124) across 6 files Reviewer: gqmelo Review duration: 4329m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 496 lines diff across 6 files
    0.47
    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.371
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #891"
    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: 47.5% (MEDIUM) · Higher = larger blast radius
    47.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: 18.8% · Safe to merge
    18.8%
    Repository