[#279] pool: Count maintenance mode errors in object search #288

Merged
fyrchik merged 1 commit from mbiryukova/frostfs-sdk-go:bugfix/count_mm_errors into master 2024-10-22 12:41:12 +00:00
Member

Closes #279

Signed-off-by: Marina Biryukova m.biryukova@yadro.com

Closes #279 Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
mbiryukova self-assigned this 2024-10-16 17:44:48 +00:00
mbiryukova added 1 commit 2024-10-16 17:44:48 +00:00
[#279] pool: Count maintenance mode errors in object search
All checks were successful
DCO / DCO (pull_request) Successful in 58s
Tests and linters / Tests (pull_request) Successful in 1m12s
Tests and linters / Lint (pull_request) Successful in 1m47s
8da1a69d2b
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
mbiryukova requested review from storage-core-committers 2024-10-16 17:47:12 +00:00
mbiryukova requested review from storage-core-developers 2024-10-16 17:47:12 +00:00
mbiryukova requested review from storage-sdk-committers 2024-10-16 17:47:13 +00:00
mbiryukova requested review from storage-sdk-developers 2024-10-16 17:47:14 +00:00
mbiryukova requested review from storage-services-committers 2024-10-16 17:47:15 +00:00
mbiryukova requested review from storage-services-developers 2024-10-16 17:47:15 +00:00
dkirillov reviewed 2024-10-17 06:48:41 +00:00
pool/pool.go Outdated
@ -2721,2 +2722,4 @@
}
switch err.(type) {
case *apistatus.NodeUnderMaintenance:
Member

I would expect that we will use handleError here to handle all errors, not only maintenance

I would expect that we will use `handleError` here to handle all errors, not only maintenance
Owner

It looks very tricky, especially given that we return the error after that.
Can we handle it where Read is called?

It looks very tricky, especially given that we return the error after that. Can we handle it where `Read` is called?
Author
Member

But if I understand correctly, Read can be called outside pool, in which case we can't count this error

But if I understand correctly, `Read` can be called outside pool, in which case we can't count this error
fyrchik marked this conversation as resolved
mbiryukova force-pushed bugfix/count_mm_errors from 8da1a69d2b to 5594551a52 2024-10-21 09:02:01 +00:00 Compare
fyrchik approved these changes 2024-10-21 10:13:31 +00:00
dkirillov approved these changes 2024-10-22 08:00:02 +00:00
dkirillov left a comment
Member

LGTM
Is it possible to add some tests?

LGTM Is it possible to add some tests?
fyrchik merged commit 5361f0eceb into master 2024-10-22 12:41:12 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
TrueCloudLab/storage-sdk-developers
TrueCloudLab/storage-services-developers
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-sdk-go#288
No description provided.