Race condition leads to data deletion #39
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#39
Loading…
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?
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