Do not send 500 when storage returns 'object already removed' #626
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#626
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?
Expected Behavior
When storage returns 'object already removed', gateway returns 404 NoSuchKey instead of 500.
Current Behavior
Gateway returns 500 Internal Error
Possible Solution
As far as I see, gateway gets this error in
GetExtendedObjectInfo
while trying to head the object by usingheadVersion
andheadLastVersionIfNotDeleted
methods. Those methods may parse objectalready removed
error as well as they parsenot found
error.Steps to Reproduce (for bugs)
Context
Regression
No
Your Environment
s3-gw v0.32.7
Done in #629