Reduce waiting time on db drop during rebuild #983

Closed
opened 2024-02-14 06:26:18 +00:00 by fyrchik · 1 comment
Owner

Currently we wait for 10 seconds in dropDB() https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/pkg/local_object_storage/blobstor/blobovniczatree/rebuild.go#L222

This is needed because of the race condition:

  1. Read storageID from the metabase
  2. Move object to a new location and remove it from the old one
  3. Read object by storageID from the blobovnicza.

We need to either allow setting this as a parameter or optimize via other means.

Currently we wait for 10 seconds in dropDB() https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/pkg/local_object_storage/blobstor/blobovniczatree/rebuild.go#L222 This is needed because of the race condition: 1. Read `storageID` from the metabase 2. Move object to a new location and remove it from the old one 3. Read object by `storageID` from the blobovnicza. We need to either allow setting this as a parameter or optimize via other means.
fyrchik added the
frostfs-node
perfomance
labels 2024-02-14 06:26:18 +00:00
fyrchik changed title from Optimize rebuild to Reduce waiting time on db drop during rebuild 2024-02-14 06:26:31 +00:00
fyrchik added the
good first issue
label 2024-02-14 06:30:11 +00:00
fyrchik added this to the vNext milestone 2024-02-14 08:40:07 +00:00
fyrchik removed the
good first issue
label 2024-02-14 08:40:13 +00:00
dstepanov-yadro self-assigned this 2024-03-01 10:18:46 +00:00
Added `rebuild_drop_timeout` parameter. See https://git.frostfs.info/TrueCloudLab/frostfs-node/src/branch/master/docs/storage-node-configuration.md#blobovnicza-type-options
fyrchik modified the milestone from vNext to v0.39.0 2024-05-02 07:37:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 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#983
No description provided.