fix(inkless:consolidation): start consolidation when remote storage is enabled later [KC-540] #802
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 236 lines diff across 2 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.327
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #802"
general
weight: 0.35
giuseppelillo
Summary
Enabling
remote.storage.enableon an already-diskless topic is a config-only write today, so brokers never re-enter become-leader and consolidation never arms. When cluster consolidation is on, the controller co-commits a leader-epoch bump with thatConfigRecord. Brokers re-enter become-leader, create the local log if needed, and start the consolidation fetcher. The bump is skipped when consolidation is off, the topic is not already diskless, or the same request starts a classic-to-diskless switch.A WAL-gap fetch after that arm can land below the diskless WAL start while RLMM is still catching up. The endpoint proves a remote prefix from RLMM (or a cheap local positive): present-true returns
OFFSET_MOVED_TO_TIERED_STORAGE, present-false leaves never-tieredOFFSET_OUT_OF_RANGE, and empty returnsNOT_LEADER_OR_FOLLOWERso the fetcher retries at debug.ConsolidationRemotePrefixUnknownis 1 during that wait and 0 once decided. Register resets the latch; fetcher removal clears it without tearing down the lag gauges. Alert on a sustained non-zero after__remote_log_metadatacatch-up; a leadership transition or an overlapping fetch can dip or briefly restore the value.Test plan
remote.storage.enable=trueon an already-diskless topic emits epoch-bumpPartitionChangeRecordobjects in the same batch as theConfigRecord.OFFSET_MOVED; present-false →OFFSET_OUT_OF_RANGE; empty →NOT_LEADER_OR_FOLLOWER.registerPartitionresetsConsolidationRemotePrefixUnknown; fetcher removal clears the latch and leaves lag gauges registered.