-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgw: RGWRESTOp no longer tracks separate error code #37052
Conversation
@mkogan1 this should at least make the admin api for bucket delete return the correct error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a good idea to me. I was just looking at this today.
@mattbenjamin the result we send back to clients is stored in note that this change is limited to admin APIs, since they're the only ones that derive from |
the api test failure shows this working. the
|
RGWOp_Bucket_Remove::execute() was storing failures from bucket->remove_bucket() in op_ret, but left http_ret=0 so we responded to the client with '200 OK' to avoid bugs like this, remove the extra http_ret variable and only use the op_ret from RGWOp Signed-off-by: Casey Bodley <cbodley@redhat.com>
5a52cd9
to
701f019
Compare
rebased over conflict with cls_fifo |
RGWOp_Bucket_Remove::execute() was storing failures from bucket->remove_bucket() in op_ret, but left http_ret=0 so we responded to the client with '200 OK'
to avoid bugs like this, remove the extra http_ret variable and only use the op_ret from RGWOp
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox