Race condition leads to data deletion #39
Labels
No Label
AdminAPI
Bug
Check AWS
CI
Correctness
Critical
Documentation
Ideas
Improvement
Low priority
Newcomer
Performance
S3 Compatibility
Testing
Usability
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#39
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
WARNING TO
0.1.x
USERS: the S3 Copy call will delete your data if the source and the destination are the same object. This is being worked on and will be fixed in0.2
097c339d98
WIP
097c339d98
The scenario that caused this error was in the CopyObject call when the source and the destination had the same path (i.e. the destination overwrites the source, e.g. to change some metadata info). Basically there was a race condition in the refcount for blocks leading to rc=0, blocks get deleted, rc goes back to 1, blocks are nowhere to be found.
TODO for NGI Milestone 1: add a 24-hour delay before deleting anything on disk (table GC and block deletion)
lx referenced this issue2021-10-28 15:47:47 +00:00