Skip to content
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

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

BryceCao
Copy link
Contributor

@BryceCao BryceCao commented Nov 3, 2020

Fixes: https://tracker.ceph.com/issues/48034
Signed-off-by: caolei halei15848934852@163.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

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

@BryceCao
Copy link
Contributor Author

BryceCao commented Nov 3, 2020

@batrick , sorry, i close last PR by mistake, please label it again.
@pponnuvel , thank you for the suggestion, i have modified my PR.

@batrick batrick added the rgw label Nov 3, 2020
@BryceCao BryceCao mentioned this pull request Nov 6, 2020
3 tasks
ldpp_dout(dpp, 5) << "applier throwed unexpected err: " << e.what()
<< dendl;
return -EPERM;
} catch (...) {
Copy link
Contributor

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?

Copy link
Contributor

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).

Copy link
Contributor Author

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>
@BryceCao
Copy link
Contributor Author

BryceCao commented Nov 9, 2020

jenkins test make check

Copy link
Contributor

@pponnuvel pponnuvel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dang
Copy link
Contributor

dang commented Nov 9, 2020

@cbodley do we think this needs Teuthology?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants