fix(inkless:switch): route pending-upload offsets to the classic log #861
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 · 388 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.357
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #861"
general
weight: 0.35
viktorsomogyi
Router fix
A follower with
follower.fetch.last.tiered.offset.enable=trueasks the leader forEARLIEST_PENDING_UPLOAD_TIMESTAMPbefore it rebuilds from tiered storage. Only the localUnifiedLogknows that offset, which derives from the highest offset in remote storage and the log start offset. A follower request on a switched partition takes the direct classic route. A diskless topic with remote storage whose switch is pending has no committed seal, and the router already applies the consolidating rules to it, so its follower requests take the hybrid route while the classic fetcher still replicates the prefix. ThereDisklessFetchOffsetRoutersent the request to the diskless lookup first and fell back to the classic log only on an empty answer. The router now routes the timestamp to the classic lookup, likeEARLIEST_LOCAL_TIMESTAMPandLATEST_TIERED_TIMESTAMP.The router picks one of four cases per partition and checks them in the order 3, 4, 2, 1. The fix changes only case 2. How a request for
EARLIEST_PENDING_UPLOAD_TIMESTAMProutes in each case:Docs
CLASSIC_TO_DISKLESS_SWITCH.mddescribed a follower that consolidated on a release that didn't wait for phase 2, and the resulting segment that spans the seal, as a limitation of forced deletion. On the current codeforceDeleteLocalSegmentsBelowrolls the active segment before it deletes,applyDeltaruns it before consolidation starts,Partition.seal()rolls the leader, and a log directory move rolls the future log at the seal. The section drops that scenario and keeps the remote-storage-off caveat.Testing
DisklessFetchOffsetRouterTestcovers the hybrid route, a follower request on a tiered diskless topic whose switch is pending, and a consolidating topic without a committed seal.make valereports no alerts.Assisted-by: Claude Fable 5.1