Skip to content

rgw: test that no asio threads are blocked on null_yield - #58179

Merged
cbodley merged 7 commits into
ceph:mainfrom
cbodley:wip-rgw-assert-async
Jul 5, 2024
Merged

cbodley merged 7 commits into
ceph:mainfrom
cbodley:wip-rgw-assert-async

Conversation

@cbodley

@cbodley cbodley commented Jun 20, 2024 •

Copy link
Copy Markdown
Contributor

continuation of the async refactoring project to eliminate the use of null_yield in frontend request coroutines

  • moves the existing warnings into new function maybe_warn_about_blocking() in rgw_asio_thread.*
  • adds config option rgw_asio_assert_yielding that teuthology tests can enable to crash on assertion failure instead of logging a warning message
  • adds maybe_warn_about_blocking() coverage to some other blocking functions

as we make progress eliminating these null_yields, we can enable rgw_asio_assert_yielding in teuthology jobs to catch any regressions

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
  • jenkins test rook e2e

@github-actions github-actions Bot added the rgw label Jun 20, 2024
@cbodley cbodley changed the title rgw: tests that no asio threads are blocked on null_yield rgw: test that no asio threads are blocked on null_yield Jun 20, 2024
@cbodley
cbodley force-pushed the wip-rgw-assert-async branch from b648e86 to 5af1d97 Compare June 20, 2024 20:23
@cbodley
cbodley force-pushed the wip-rgw-assert-async branch 2 times, most recently from acd9e85 to d55c446 Compare June 21, 2024 20:27
@cbodley
cbodley marked this pull request as ready for review June 21, 2024 20:41
@cbodley
cbodley requested a review from a team as a code owner June 21, 2024 20:41
@cbodley

cbodley commented Jun 21, 2024

Copy link
Copy Markdown
Contributor Author

when enabling rgw_asio_assert_yielding in a vstart cluster, i was able to do simple operations like multipart uploads and bucket creation/listing/deletion. but running s3-tests against that still crashes:

FAILED s3tests_boto3/functional/test_s3.py::test_lifecycle_set - botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://localhost:8000/yournamehere-lojqimpnwzlbkdts-361?lifecycle"

this at least gives us a process to locate and fix any such crashes, then eventually enable rgw_asio_assert_yielding in teuthology to catch any regressions

@cbodley

cbodley commented Jun 25, 2024

Copy link
Copy Markdown
Contributor Author

@cbodley

cbodley commented Jun 25, 2024

Copy link
Copy Markdown
Contributor Author

jenkins test api

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@github-actions

github-actions Bot commented Jul 2, 2024

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Comment thread src/common/options/rgw.yaml.in Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: The first line of this commit is too long

enable this to assert on blocking calls that should be asynchronous
instead of just logging a warning message

Signed-off-by: Casey Bodley <[email protected]>
@cbodley
cbodley force-pushed the wip-rgw-assert-async branch from 7339853 to b0d0596 Compare July 2, 2024 20:41
@cbodley

cbodley commented Jul 3, 2024

Copy link
Copy Markdown
Contributor Author

from https://jenkins.ceph.com/job/ceph-api/77046/

teuthology.exceptions.CommandFailedError: Command failed with status 250: '../src/vstart.sh -n --nolockdep'

@cbodley

cbodley commented Jul 3, 2024

Copy link
Copy Markdown
Contributor Author

jenkins test api

@cbodley
cbodley merged commit 6f5a6f4 into ceph:main Jul 5, 2024
@cbodley
cbodley deleted the wip-rgw-assert-async branch July 5, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants