-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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 : catch non int exception #37926
rgw : catch non int exception #37926
Conversation
@batrick , sorry, i close last PR by mistake, please label it again. |
0caaaa2
to
6c8ae90
Compare
src/rgw/rgw_auth.cc
Outdated
ldpp_dout(dpp, 5) << "applier throwed unexpected err: " << e.what() | ||
<< dendl; | ||
return -EPERM; | ||
} catch (...) { |
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.
The ... catch shouldn't be necessary, since std::exception should catch everything, right?
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.
Shouldn't be in general unless there's some exception class that doesn't inherit from std::exception (I don't know if there's any such class involved here).
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.
I checked the code here again. Actually, there would be two kinds of errors: int and std::exception, so i remove the part of catch (...)
.
Fixes: https://tracker.ceph.com/issues/48034 Signed-off-by: caolei <halei15848934852@163.com>
6c8ae90
to
bfd20a5
Compare
jenkins test make check |
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.
LGTM
@cbodley do we think this needs Teuthology? |
Fixes: https://tracker.ceph.com/issues/48034
Signed-off-by: caolei halei15848934852@163.com
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