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

tests: coroutines_test: add reproducers for #1913 #2187

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tchaikov
Copy link
Contributor

again even if the previous returned yield_awaiter is not ready, and that not-ready awaiter has not been resumed. another problem is that, the awaiter in generator coroutine fails to keep the async buffer alive when caller of async generator either drains the generator or returns without draining the generator. either way, some test cases are added in this test for two purposes:

  1. as reproducers, they can be used to verify their fixes
  2. these test cases should help to prevent future regressions after the fixes get included.

Refs #1913

again even if the previous returned `yield_awaiter` is not ready, and
that not-ready awaiter has not been resumed. another problem is that,
the awaiter in generator coroutine fails to keep the async buffer alive
when caller of async generator either drains the generator or returns
without draining the generator. either way, some test cases are added in
this test for two purposes:

1. as reproducers, they can be used to verify their fixes
2. these test cases should help to prevent future regressions after
   the fixes get included.

Refs scylladb#1913

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
@tchaikov tchaikov requested review from nyh and xemul April 15, 2024 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant