Make GC handle expired lockers/tombstones correctly while some shards are read-only #1445
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1445
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?
The task is based on several bugs that have appeared recently. The following description concerns lockers and locks, but those considerations are also valid for tombstones.
Problem
Suppose a locked object and its locker are placed on separate shards. While handling expired lock objects, the GC deletes the expired locker but doesn't unlock the object if it's on a read-only shard. As the result, the original object is locked forever on that node.
Since the GC needs to access all shards when handling a expired locker, it uses callbacks passed from a storage engine. Then the GC accesses all shards separately, which leads to the problem described above.
Steps to reproduce
Expected behavior
The object can be deleted in the future because it'll be eventually unlocked.
Current behavior
The object can't be deleted because it keeps being locked forever on that node.
Possible solutions
Please share your thoughts!