ape: Return not found
when removing local overrides #1162
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
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-node#1162
Loading…
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-node:bugfix/1156-remove-policy-unknown"
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?
Close #1156
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
db04c42f6d
tof7d6455ed0
WIP: ape: Returnto ape: Returnnot found
when removing local overridesnot found
when removing local overridesPlease, look at tests.
Passed.
@ -179,2 +177,2 @@
return nil, status.Error(code, err.Error())
}
if err = s.localOverrideStorage.LocalStorage().RemoveOverride(apechain.Ingress, target, req.GetBody().GetChainId()); err != nil {
return nil, status.Error(getCodeByLocalStorageErr(err), err.Error())
Error still be
internal
rather thannot found
because in getCodeByLocalStorageErr we dont handleengine.ErrResourceNotFound
Oh, missed that. Fixed.
f7d6455ed0
to466c75d2b2
466c75d2b2
toe55cddead3