Repository navigation
fix: fail closed on object lock preflight reads - #235
Merged
Merged
Conversation
Return storage read failures before accepting an object overwrite. Keep the null-version and multipart target checks under the destination write lock, and add slow-body, read-fault, legacy-upload and recovery-collision regressions to the Object Lock race gate. Signed-off-by: Feng Ruohang <[email protected]>
This was referenced Oct 24, 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.
Object Lock preflight currently ignores metadata read failures and can accept the full request body before the storage write-lock guard rejects the overwrite. Return read failures immediately, while retaining the existing null-version lock checks and multipart UUID existence checks under the destination write lock.
Add four adversarial regressions for a paused directory PUT, a preflight read-quorum failure, a legacy upload targeting a locked version, and a recovered upload colliding with a replicated COMPLIANCE version. Run these and the existing Object Lock regressions in the CI race job. No multipart origin-marker exemption or storage-format change is introduced.
Validation on main
14042b5aaplus this exact patch:make test: passed; lint reports 0 issues, generated files and compatibility baseline are unchanged, build and 51 test packages pass.This supplements #234 and preserves the Go 1.27.2, x/net and linter updates already on main. English and Chinese design documentation are updated separately in
pgsty/silo.pgsty.com. Commits carry the author's DCO sign-off.