[SUPPORT]: Ignore ECInfoErr
erros in GetSplitInfo
#313
No reviewers
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
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-sdk-go#313
Loading…
Reference in a new issue
No description provided.
Delete branch "aarifullin/frostfs-sdk-go:fix/ignore_ec_info_err"
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?
ECInfoError
errors after rawHeadObject
request inGetSplitInfo
Close #312
ECInfoErr
erros inGetSplitInfo
Ignoreto SUPPORT: IgnoreECInfoErr
erros inGetSplitInfo
ECInfoErr
erros inGetSplitInfo
SUPPORT: Ignoreto [SUPPORT]: IgnoreECInfoErr
erros inGetSplitInfo
ECInfoErr
erros inGetSplitInfo
@ -2990,3 +2991,3 @@
case errors.As(err, &errSplit):
return errSplit.SplitInfo(), nil
case err == nil:
case err == nil || errors.As(err, &errECInfo):
Why using
errors.As()
here and noterrors.Is()
?errors.Is
checks exact error value (similar to==
check) whileerrors.As
tries to cast error to error type.Exact value check is being used when error is explicitly defined (e.g.
MyError := errors.New("my error"
).@alexvanin is right.
errors.Is
would have been used ifvar errECInfo = errors.New("object not found, ec info provided")
, but it's introduced as complex type with data withinDoes this PR close any issue?
Oh, fixed the description. I'll also open PR for master