Skip to content

[Aio] Make completion queue shutdown stricter#22758

Merged
lidizheng merged 1 commit intogrpc:masterfrom
lidizheng:aio-cq-shutdown
Apr 23, 2020
Merged

[Aio] Make completion queue shutdown stricter#22758
lidizheng merged 1 commit intogrpc:masterfrom
lidizheng:aio-cq-shutdown

Conversation

@lidizheng
Copy link
Copy Markdown
Contributor

If there are multiple threads initializing AsyncIO stack (like in pytest), it might trigger a race condition that previous poller thread wasn't joined and new poller thread becomes alive. So, this PR make the shutdown procedure of poller completion queue stricter to ensure the poller thread has received the shutdown event.

@lidizheng lidizheng added kind/bug lang/Python release notes: no Indicates if PR should not be in release notes labels Apr 23, 2020
@lidizheng lidizheng marked this pull request as ready for review April 23, 2020 22:43
@lidizheng lidizheng requested a review from gnossen April 23, 2020 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug lang/Python release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants