Don't return InternalError
if possible #143
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#143
Loading…
Add table
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 function that forms s3 errors to return to the client.
And if the error is already well formed s3 error it's returned as is.
But sometimes initial error is wrapped and we get
InternalError
Expected Behavior
Getting
EntityTooSmall
errorCurrent Behavior
Getting
InternalError
errorPossible Solution
Unwrap s3 errors here before checking
Steps to Reproduce (for bugs)
Your Environment
751d66bde0
Done in #148