Cancel GC is change mode requested #387
No reviewers
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
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#387
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:fix/fix/cancel_gc_on_set_mode"
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?
GC can hold read lock for a long time. If change mode requested, GC should be cancelled.
12807a9856
to4539086621
@ -338,0 +349,4 @@
}
func (s *Shard) lockExclusive() func() {
lockTaken := make(chan interface{})
Why not
struct{}
?no actual
@ -79,3 +74,2 @@
if res.StorageID() != nil {
smalls[prm.addr[i]] = res.StorageID()
func (s *Shard) deleteObjectFromWriteCacheSafe(ctx context.Context, addr oid.Address) {
What is the meaning of
Safe
in this context?no error returned
4539086621
toe2e3127616
e2e3127616
tod4ca88de79
@ -211,3 +215,3 @@
// hasWriteCache returns bool if write cache exists on shards.
func (s Shard) hasWriteCache() bool {
func (s *Shard) hasWriteCache() bool {
govet linter: copylocks
d4ca88de79
to2613351008