[#226] Fix status code in GET/HEAD delete marker #242
No reviewers
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 milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#242
Loading…
Reference in a new issue
No description provided.
Delete branch "dkirillov/frostfs-s3-gw:bugfix/226-get_head_delete_marker"
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 #226
@ -80,2 +84,4 @@
)
func (e DeleteMarkerError) Error() string {
return "object is delete marker"
What you think about having
%v: object is delete marker
formatting with inclusion of api error code. Does it make sense here or not?I'm not sure that it makes a big sense. I don't know how having api error code can help us. In addition currently we log this error along with full s3 api error description (in
logAndSendError
function).632aa3f979
to0dd50e4c89
0dd50e4c89
tofad3f13a2b
@ -47,0 +52,4 @@
return err
}
w.Header().Set(api.AmzDeleteMarker, "true")
Is it ok that
AmzDeleteMarker
header may appear in other responses (e.g. copy)?I think yes. I suppose it doesn't break anything because the clients probably don't handle unexpected/unknown response headers
fad3f13a2b
to0938d7ee82