Repository navigation
Conversation
PsiACE
approved these changes
Nov 27, 2026
Member
Author
|
Tracking Garage write-checksum compatibility in #9243. (AI-assisted) |
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.
Which issue does this PR close?
Part of #9182.
Rationale for this change
Garage verifies full-object CRCs on signed single PUT and multipart writes. OpenDAL can expose that support on the named
garagepreset after handling two response differences in Garage 2.1.0.What changes are included in this PR?
write_with_checksumfor the Garage preset and record support in the generated capability catalog.ChecksumCR64NVMEmultipart completion field for CRC-64/NVME. The writer prefers the canonical field and still checks the completion response and returned digest.ChecksumMismatchfor the observed HTTP 400InvalidDigestresponses to signed Garage PUT, part upload and multipart completion requests with explicit CRCs. Keep the original service diagnostic. The writer can retry a rejected computed PUT or part with its retained buffer.Are there any user-facing changes?
Choose a checksum with the write intent on the Garage operator.
AnyandFastuse CRC-64/NVME.AlgoandExpectedsupport CRC-32C and CRC-64/NVME. Successful checksum writes return the confirmed digest inMetadata::checksum(). For a presigned PUT, provide anExpecteddigest and send its signed checksum header. Ordinary writes without a checksum intent omit checksum headers.Verified on a digest-pinned Garage 2.1.0 fixture using signed path-style requests. Single PUT and unequal multipart writes returned the independent reference digests. Invalid expected digests preserved the previous bytes or target absence before and after abort. Actual presigned PUT and replay after a rejected computed CRC were also verified.
Breaking changes
AI Usage Statement
magpie/codex/gpt-6.2-sol,maxeffort. Implemented the Garage protocol handling, revised capability advertisement, regenerated the catalog and ran the live and shared tests.magpie/codex/gpt-6.2-sol,higheffort. Independently reviewed the protocol handling and live evidence on the earlier head.magpie/codex/gpt-6.2-astra,higheffort. Coordinated the accepted Garage scope and the shared preset change.