Cancel GC is change mode requested #387

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/fix/cancel_gc_on_set_mode into master 2023-05-25 10:47:10 +00:00

GC can hold read lock for a long time. If change mode requested, GC should be cancelled.

GC can hold read lock for a long time. If change mode requested, GC should be cancelled.
dstepanov-yadro force-pushed fix/fix/cancel_gc_on_set_mode from 12807a9856 to 4539086621 2023-05-23 12:06:47 +00:00 Compare
dstepanov-yadro requested review from storage-core-committers 2023-05-23 12:07:13 +00:00
dstepanov-yadro requested review from storage-core-developers 2023-05-23 12:07:13 +00:00
acid-ant approved these changes 2023-05-23 12:07:41 +00:00
fyrchik reviewed 2023-05-24 11:42:45 +00:00
@ -338,0 +349,4 @@
}
func (s *Shard) lockExclusive() func() {
lockTaken := make(chan interface{})
Owner

Why not struct{}?

Why not `struct{}`?
Author
Member

no actual

no actual
fyrchik marked this conversation as resolved
@ -79,3 +74,2 @@
if res.StorageID() != nil {
smalls[prm.addr[i]] = res.StorageID()
func (s *Shard) deleteObjectFromWriteCacheSafe(ctx context.Context, addr oid.Address) {
Owner

What is the meaning of Safe in this context?

What is the meaning of `Safe` in this context?
Author
Member

no error returned

no error returned
fyrchik marked this conversation as resolved
dstepanov-yadro force-pushed fix/fix/cancel_gc_on_set_mode from 4539086621 to e2e3127616 2023-05-24 12:41:34 +00:00 Compare
dstepanov-yadro force-pushed fix/fix/cancel_gc_on_set_mode from e2e3127616 to d4ca88de79 2023-05-24 12:54:50 +00:00 Compare
dstepanov-yadro reviewed 2023-05-24 12:55:40 +00:00
@ -211,3 +215,3 @@
// hasWriteCache returns bool if write cache exists on shards.
func (s Shard) hasWriteCache() bool {
func (s *Shard) hasWriteCache() bool {
Author
Member

govet linter: copylocks

govet linter: copylocks
fyrchik approved these changes 2023-05-24 13:33:36 +00:00
aarifullin approved these changes 2023-05-24 15:30:12 +00:00
fyrchik approved these changes 2023-05-24 17:22:16 +00:00
dstepanov-yadro force-pushed fix/fix/cancel_gc_on_set_mode from d4ca88de79 to 2613351008 2023-05-25 06:38:46 +00:00 Compare
fyrchik approved these changes 2023-05-25 10:47:05 +00:00
fyrchik merged commit 2613351008 into master 2023-05-25 10:47:10 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#387
No description provided.