Reorganize handleError logic in pool #12
Labels
No labels
P0
P1
P2
P3
good first issue
pool
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
We have a bit of a hacks in
handleError
after https://github.com/TrueCloudLab/frostfs-sdk-go/pull/11: split info error should be passed as a status code from FrostFS but returned as a generic error anyway.Consider making changes in API and storage node to avoid having split info error in transport error layer.
Or consider making
handleError
function parsing onlyerror
type without working with any statuses, so it will be at least consistent.@dkirillov Can you check if this still relevant?
The current behavior the same as it was. We have to check if generic error is split info error in
handleError
.To fix this we can change only sdk (not api/node) because node doesn't return error at all in such case. We form split error here.
But do we really want such changes? If the question is only in the consistency in
handleError
then it seems we will still have it because of checkingcontext.Cancelled
error here