Repository navigation
Propagate local storage upload errors when locking is disabled - #2204
Open
JunaidAhamed-7777 wants to merge 1 commit into
Open
JunaidAhamed-7777 wants to merge 1 commit into
JunaidAhamed-7777 wants to merge 1 commit into
Conversation
Apache-ai: Code and regression tests prepared with OpenAI Codex.
JunaidAhamed-7777
marked this pull request as ready for review
November 1, 2026 04:49
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.
Description
NoOpLockLocalStorage.__exit__returns the exception object. A truthy return suppresses that exception, so disabling locking can cause a failed upload to report success. ReturnFalseso the original error propagates.The regressions cover a source stream that yields data and then raises
OSError, a missing source file uploaded over an existing destination, and a successful streamed upload with locking disabled.Reproduction
On
trunkatbd9cbb3e393bc42f57684481e7c62e9293007584, Python 3.12.14 on Linux:With this change, the original
OSErrorpropagates. This does not change partial-file cleanup or the locking-enabled implementation. The bug report is included here; there is no separate tracking issue.Status
Draft. Human review and hosted CI are pending.
Validation
pytest -q libcloud/test/storage/test_local.py libcloud/test/storage/test_base.py: 35 passed.git diff --checkpass for the changed files.Checklist