blobovniczatree: Return source error from Init() #1630

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:fix/blobovniczatree_init_error into master 2025-02-04 07:13:47 +00:00

As it was before: when the database was opened, an error returned,
but along with the original error, the context cancelled error returned,
because iterateIncompletedRebuildDBPaths method has ctx.Done() check
and egCtx passed to iterateIncompletedRebuildDBPaths method.

Closes #1624

As it was before: when the database was opened, an error returned, but along with the original error, the `context cancelled` error returned, because `iterateIncompletedRebuildDBPaths` method has `ctx.Done()` check and egCtx passed to `iterateIncompletedRebuildDBPaths` method. Closes #1624
dstepanov-yadro added 1 commit 2025-02-03 14:42:44 +00:00
[#1624] blobovniczatree: Return source error from Init()
All checks were successful
DCO action / DCO (pull_request) Successful in 39s
Vulncheck / Vulncheck (pull_request) Successful in 54s
Build / Build Components (pull_request) Successful in 1m23s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m24s
Tests and linters / Run gofumpt (pull_request) Successful in 1m32s
Tests and linters / Staticcheck (pull_request) Successful in 1m56s
Tests and linters / Tests (pull_request) Successful in 2m28s
Tests and linters / Lint (pull_request) Successful in 2m38s
Tests and linters / Tests with -race (pull_request) Successful in 3m47s
Tests and linters / gopls check (pull_request) Successful in 3m49s
Vulncheck / Vulncheck (push) Successful in 1m7s
Pre-commit hooks / Pre-commit (push) Successful in 1m28s
Tests and linters / Run gofumpt (push) Successful in 1m42s
Build / Build Components (push) Successful in 2m9s
Tests and linters / Staticcheck (push) Successful in 2m16s
Tests and linters / Tests (push) Successful in 2m32s
Tests and linters / Lint (push) Successful in 3m6s
Tests and linters / Tests with -race (push) Successful in 3m36s
Tests and linters / gopls check (push) Successful in 3m47s
OCI image / Build container images (push) Successful in 4m28s
4de5fca547
As it was before: when the database was opened, an error returned,
but along with the original error, the `context cancelled`` error returned,
because `iterateIncompletedRebuildDBPaths` method has `ctx.Done()` check
and egCtx passed to `iterateIncompletedRebuildDBPaths` method.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
requested reviews from storage-core-committers, storage-core-developers 2025-02-03 14:42:44 +00:00
dstepanov-yadro reviewed 2025-02-03 14:43:24 +00:00
@ -68,3 +44,1 @@
if err != nil {
_ = eg.Wait()
return err
if b.blzInitWorkerCount > 0 {
Author
Member

blzInitWorkerCount could be -1 (means no limit)

`blzInitWorkerCount` could be -1 (means no limit)
acid-ant approved these changes 2025-02-04 06:00:42 +00:00
Member

Please remove redundant ` from commit message.

Please remove redundant ` from commit message.
fyrchik approved these changes 2025-02-04 07:13:42 +00:00
fyrchik merged commit 4de5fca547 into master 2025-02-04 07:13:47 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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#1630
No description provided.