Repository navigation
fix(object_store): re-validate rescues, cap timeout allowance, and require admission for overload copies - #229
Merged
Merged
Conversation
…quire admission for overload copies
[Medium impact] The PR appears safe to merge; no actionable new issues were found. SummaryThis PR tightens replica reads and rewrites their documentation.
The latest changes preserve these rules across overload changes and flat request models. No new actionable issues were found. Tests were inspected, not run. Reviews (2) · Last reviewed commit: "test(object_store): clarify timeout allo..." · Reviewed by Greptile |
Merged
shikhar
pushed a commit
that referenced
this pull request
Nov 20, 2026
## 🤖 New release * `cachey`: 0.13.5 -> 0.13.6 <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.13.6](0.13.5...0.13.6) - 2026-11-20 ### Fixed - *(service)* reject objects exceeding MAX_OBJECT_SIZE ([#230](#230)) - *(object_store)* re-validate rescues, cap timeout allowance, and require admission for overload copies ([#229](#229)) - *(service)* bound max_attempts in C0-Config and retry overrides ([#228](#228)) ### Other - *(deps)* upgrade dependencies ([#226](#226)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes three replica read edge cases in
object_store:RoutingSnapshot::rescue_schedulenow returnsScheduledRescue { after, index, budget }, carrying each rescue's schedule-time feasibility budget (download_timeout - afterwhen scheduled healthy, ordownload_timeoutwhen scheduled overloaded and therefore not pulled earlier). WhenTrigger::Rescuefires,Followups::nextre-checksrouting.feasible(rescue.index, rescue.budget)against the fresh routing snapshot. Using the schedule-time budget eliminates both schedule-vs-fire overload drift and 1 ms timer-lateness flakiness on clamped rescues.first_byteandbodytails are measured andbody <= request.tail(atmax(requested_bytes, announced_body_bytes)),LatencyModel::timeout_allowancecaps their sum atrequest.tail.max(first_byte). This prevents anticorrelated or independent phase tails (and unfinished slow headers) from turning post-header bucket timeouts into unreachableOutcome::Neutralverdicts, while letting small announced bodies on page reads tighten belowrequest.tailand preserving the fullfirst_byte + bodysum for rare or extrapolated large bodies (body > request.tail). When either phase is unmeasured, the floor falls back torequest.tail(requested_bytes)ifannounced_body_bytesis past a flat model's reach.routing.all_overloaded()) now require an immediate admission permit before callingattempt_budget.try_retry(), so they never queue inBucketOperation::executeand burn a retry credit onAdmissionTimeoutor cancellation. Recovery probe backups reuse their reservedbackup_admission, and untried overload fallbacks rejected bytry_acquirerecordDownloadError::AdmissionTimeoutso a prior replicaNoSuchKeycannot surface as a false 404.docs/replica-reads.mdfor clarity and accuracy.Verification
cargo +nightly fmtcargo clippy --locked --all-features --all-targets -- -D warnings --allow deprecatedcargo deny checkcargo nextest run --locked(including unit tests covering all three fixes and review follow-up edge cases)mainvs. branch across all 54 scenarios × 3 seeds = 162 runs, 271,113 arrivals): 54/54 identical with zero regressionsCloses #222
Closes #223
Closes #224