Repository navigation
fix(cache): classify retriable http outboard GET statuses as transient faults - #2853
Merged
Merged
Conversation
…t faults HttpOrigin::get_outboard_bounded mapped every non-success, non-404 status — 500/503 included — to a silent OutboardFetch::Unsupported, indistinguishable from an origin that publishes no outboards. While the origin erred, every range pull degraded to the buffered whole-blob path with no log at any level. Retriable statuses (5xx/408/429, via is_transient_status) now surface as OriginPullError::Transient; other declines (401/403/3xx) stay Unsupported but warn. Closes #2826 Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Code coverage overviewLanguages: Rust Rust / code-coverage/cargo-llvm-cov
View coverage of the 7 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
…cline class get_range_bytes mapped a 5xx/408/429 on a ranged data GET to a silent decline, the same defect as the outboard GET: the serve-miss probe read an outage as an origin that cannot serve ranges, logged it at debug and recorded no fault. Retriable statuses now surface as OriginPullError::Transient. A deterministic outboard decline (401/403/3xx) warns once per origin per status class and logs at debug after that, so an origin that answers 403 for a missing key does not warn on every cold miss. The Origin::fetch_outboard contract now says an adapter may degrade a deterministic non-404 decline to Unsupported. Adds an is_transient_status table test, range GET 503/404 tests, and node tests that an outboard 503 still delivers via whole-blob fallback and refuses as InternalError when no fill tier serves. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 6, 2026
outboard_decline_warns_once_per_status_class checks only the bit logic, so it passes with the warn!/debug! arms of log_outboard_decline swapped. The new test captures formatted output and pins one WARN line, then one DEBUG line, for two 403 declines. LogBuffer moves from fs/tests.rs to a shared test-only origin::log_capture module so both adapters use it. Closes #2856 Co-Authored-By: Claude Opus 5.5 <[email protected]>
thiras
approved these changes
Nov 6, 2026
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.
HttpOrigin::get_outboard_boundedmapped every non-success, non-404 status — 500/503 included — to a silentOutboardFetch::Unsupported, indistinguishable from an origin that publishes no outboards. While the origin erred, every range pull degraded to the buffered whole-blob path with no log at any level. The s3 adapter already classifies its GetObject errors.get_range_byteshad the same defect on the ranged data GET: a 503 read as "origin cannot serve ranges", logged at debug only.is_transient_status) on the outboard GET and the ranged data GET now surface asOriginPullError::Transient. The serve-miss probe latches the fault, counts it innode_pull_through_errors_total, and still degrades the pull to a whole-blob populate; with no fill tier the refusal isInternalError, notNotFound.Unsupportedand warn once per origin per status class, then log at debug — an origin that answers 403 for a missing key would otherwise warn on every cold miss. Known limit: the warn-once lasts until node restart; a decline counter is tracked in cache: add a counter metric for outboard declines #2855.Origin::fetch_outboardcontract now says an adapter may degrade a deterministic non-404 decline (HTTP does; S3 faults itPermanent).is_transient_statustable, outboard/range 503 → Transient, range 404 → Unsupported, warn-once per class (bit logic and the WARN-then-DEBUG log level, via a shared test-onlyLogBuffer), and node tests for whole-blob fallback and theInternalErrorrefusal on an outboard 503.Closes #2826
Closes #2856
🤖 Generated with Claude Code