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

stub: blockingUnaryCall only shutdown ThreadlessExecutor when call is… #9042

Closed
wants to merge 1 commit into from

Conversation

YifeiZhuang
Copy link
Contributor

… truly closed

Once ThreadlessExecutor shutdown, it causes rejectedExecutionException when adding new runnables.
That is only safe after call is closed (Listener.onClose() is notified). So we move shutdown from finally block to the place where call is truly closed.

related to #9035

Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

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

Oh, I thought I was making it in #9041 . Doesn't matter which one goes in!

@YifeiZhuang
Copy link
Contributor Author

duplicate of #9041

@YifeiZhuang YifeiZhuang closed this Apr 1, 2022
@YifeiZhuang YifeiZhuang deleted the move-executor-shutdown branch April 1, 2022 15:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants