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

rgwlc: fix error return from backward-compat decode #36246

Merged
merged 1 commit into from Aug 5, 2020

Conversation

mattbenjamin
Copy link
Contributor

Exception handling in backward-compat case returned EIO even when
the actual backward-compat decode succeeded.

Fixes: https://tracker.ceph.com/issues/46677

Signed-off-by: Matt Benjamin mbenjamin@redhat.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 dashboard backend
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

Exception handling in backward-compat case returned EIO even when
the actual backward-compat decode succeeded.

Fixes: https://tracker.ceph.com/issues/46677

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
@@ -3775,13 +3775,14 @@ static int rgw_cls_lc_list_entries(cls_method_context_t hctx, bufferlist *in,
/* try backward compat */
pair<string, int> oe;
try {
iter = it->second.begin();
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably doesn't matter, but the initial set above is a const iter (cbegin(), not begin())

Copy link
Contributor

Choose a reason for hiding this comment

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

since it doesn't affect compilation (you can assign a non-const iterator to a const_iterator), lets just get this tested and merged

@cbodley
Copy link
Contributor

cbodley commented Jul 23, 2020

jenkins test make check

@mattbenjamin
Copy link
Contributor Author

@cbodley @epuertat @alfonsomthd I don't see any connection between this PR and ceph dashboard backend API tests; blocking a PR from merging is a high bar--it seems like something isn't working as expected

@alfonsomthd
Copy link
Contributor

jenkins test dashboard backend

@alfonsomthd
Copy link
Contributor

alfonsomthd commented Jul 24, 2020

@cbodley @epuertat @alfonsomthd I don't see any connection between this PR and ceph dashboard backend API tests; blocking a PR from merging is a high bar--it seems like something isn't working as expected

@mattbenjamin I re-triggered the job with jenkins test dashboard backend and it was successful.
So the PR is good to go!

Also, the last CEPH API Nightly job was also successful:
https://jenkins.ceph.com/view/all/job/ceph-api-nightly-master-backend/244/console

Regarding the not apparent connection, this job is a safeguard (for Ceph project API) in the same way
that make check is, e.g.:
When we do a trivial JavaScript (frontend) change, sometimes we have to trigger make check several times
due to completely unrelated failure in the job, but we know it's in our best interest to have make check there.

We are aware that the API job have been sometimes unstable so @epuertat and @tchaikov have recently made improvements.
We are currently monitoring the issues & performance of the job,
so we kindly ask for your support & collaboration: any suggestion is welcomed!

@cbodley cbodley merged commit 2e3be85 into ceph:master Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants