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: catches nobjects_begin() exceptions #50016

Merged
merged 2 commits into from Feb 17, 2023

Conversation

max-licc
Copy link
Contributor

@max-licc max-licc commented Feb 7, 2023

The problem of nobjects_begin() crash occurred in the test environment.

in RGWSI_RADOS::Pool::List::init() and log_list_init() , catch exceptions thrown by nobjects_begin().

Signed-off-by: lichaochao2_yewu@cmss.chinamobile.com

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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 dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

@cbodley
Copy link
Contributor

cbodley commented Feb 7, 2023

@max-licc thanks for the contribution! i've updated https://tracker.ceph.com/issues/54802 which tracks this crash

i see that the Signed-off-by check is failing. could you please update your commit messages to use the format it expects?
Signed-off-by: Name <email>

return 0;
} catch (const std::system_error& e) {
r = -e.code().value();
ldpp_dout(dpp, 10) << "nobjects_begin threw " << e.what()
Copy link
Contributor

Choose a reason for hiding this comment

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

is 10 the right log level for this kind of error?

Copy link
Contributor

Choose a reason for hiding this comment

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

i think 10 is a good choice. if this ends up being a fatal error, we should already be logging that at level 0 or 1 further up the call stack

Copy link
Contributor

Choose a reason for hiding this comment

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

will we have more than an error code at that point in the unwind?

Signed-off-by: lichaochao <lichaochao2_yewu@cmss.chinamobile.com>
…exceptions

Signed-off-by: lichaochao <lichaochao2_yewu@cmss.chinamobile.com>
@max-licc
Copy link
Contributor Author

@max-licc thanks for the contribution! i've updated https://tracker.ceph.com/issues/54802 which tracks this crash

i see that the Signed-off-by check is failing. could you please update your commit messages to use the format it expects? Signed-off-by: Name <email>

Thank you for your review. I have fixed it.

@ivancich ivancich added the wip-eric-testing-1 for ivancich testing label Feb 16, 2023
@ivancich
Copy link
Member

jenkins test make check

@ivancich
Copy link
Member

This passed my QA run and I'm waiting for make check to complete so I can merge.

@max-licc : would you be so kind as to fill in the checklist above and determine whether any backports are needed and if so create an appropriate tracker? Thank you!

@ivancich ivancich merged commit e344ad1 into ceph:main Feb 17, 2023
@ivancich ivancich added bug-fix and removed wip-eric-testing-1 for ivancich testing ready-to-merge labels Feb 17, 2023
@max-licc max-licc deleted the nobjects_begin_crash branch February 20, 2023 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants