Repository navigation
fix: fail closed on unreadable legacy tombstones - #247
Merged
Merged
Conversation
Signed-off-by: Perfloop Agent <[email protected]>
Signed-off-by: Perfloop Agent <[email protected]>
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryLegacy ordered metadata writes now stop when a tombstone read fails or its stored length is wrong.
Reviews (4) · Last reviewed commit: "Merge branch 'main' into perfloop-pr-ope..." · Reviewed by Greptile |
Signed-off-by: Perfloop Agent <[email protected]>
perfloop
Bot
force-pushed
the
perfloop-pr-open-2ma3ywfrew
branch
from
October 3, 2026 04:41
0127bf7 to
369a1a8
Compare
ovaistariq
approved these changes
Oct 21, 2026
|
🎉 This PR is included in version 1.22.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
In default legacy coordination, ordered metadata writes now fail closed when the tombstone read fails or its value is malformed. A genuinely absent marker still permits a warm, and a newer valid tombstone still blocks a stale token. The detached metadata warm remains best-effort, so refusing it does not change a successful multipart response.
TestLegacyCoordinator_TombstoneReadErrorAndMalformedMarkerRefuseMetaWritecovers backend/routing failures and malformed marker lengths.TestLegacyCoordinator_TombstoneAbsenceStillAllowsMetaWarmchecks genuine absence;TestLegacyCoordinator_TombstoneBlocksStalePopulatecovers the valid newer-tombstone guard.TestCompleteMultipart_TombstoneReadFailureDoesNotResurrectOldMetadataholds the first completion'sv1HEAD while a second same-key completion returnsv2, then fails only the first warm's tombstone read. It checks stored metadata, HEAD, conditional GET, and both completion responses.This condition holds with this change and does not hold at
50146c6b2f0360a36caa7809a767d8c09b4c5a55:With cache and block caching enabled in default legacy coordination, a failed tombstone read during a held pre-overwrite metadata warm must not publish or return the old ETag through HEAD or If-None-Match GET after a newer same-key multipart completion succeeds..The comparison schedule uses a controlled in-memory cache and forwarder harness retained outside this pull request. It proves this injected ordering, not how often it occurs in production; that frequency remains unmeasured. The finding concerns stale metadata and ETags, not old object bytes from missing blocks. The second metadata warm can still be coalesced, so the newer object may require an upstream miss rather than an immediate cache hit.
docs/metrics.mddocuments CASPutIfVersionmismatches asmeta_put/precondition_lost; unreadable or malformed legacy markers remainmeta_put/error. The README and configuration docs describe the fail-closed behavior.Passed checks:
make lint-ci,make build,make test,make test-integration,make test-race, andmake test-coverage.Generated by Perfloop.