mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[PR #935] [MERGED] Race-free Preconditions #1050
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#1050
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/935
Author: @rawler
Created: 9/29/2022
Status: ✅ Merged
Merged: 10/31/2022
Merged by: @fsouza
Base:
main← Head:race-free-preconditions📝 Commits (5)
4c29f59upload_test: Add UploadRacesAreOnlyWonByOnef2eaa70backend/storage:AddConditionsto CreateObject23d566eupload_test: improve diagostics of ..RacesAreOnlyWonByOne5ec4d7aApply suggestions from review4aba11aupload_test:Use runServersTest in ...RacesAreOnlyWonByOne📊 Changes
8 files changed (+176 additions, -71 deletions)
View changed files
📝
fakestorage/json_response.go(+5 -0)📝
fakestorage/object.go(+5 -5)📝
fakestorage/upload.go(+38 -49)📝
fakestorage/upload_test.go(+72 -0)📝
internal/backend/backend_test.go(+3 -3)📝
internal/backend/fs.go(+19 -7)📝
internal/backend/memory.go(+20 -4)📝
internal/backend/storage.go(+14 -3)📄 Description
This fixes an issue we've experienced, where "IfNotExist"-style uploads have exhibited racy behavior, specified to not exist in production GCS.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.