-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Pubsub: Fix subscriber.stopAsync().awaitTerminated() does not destroy respective threads. #5495
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5495 +/- ##
============================================
- Coverage 50.82% 50.82% -0.01%
+ Complexity 24189 24175 -14
============================================
Files 2271 2271
Lines 229912 229918 +6
Branches 25002 25007 +5
============================================
+ Hits 116845 116848 +3
- Misses 104435 104438 +3
Partials 8632 8632
Continue to review full report at Codecov.
|
@pmakani, thanks for the PR. I spoke at length with @ajaaym about this. I think we will have to defer to @kamalaboulhosn and team about how to proceed with this. There are a number of things to consider as part of the shutdown process. |
@pmakani, the Pub/Sub team will work on this. |
@hannahrogers-google PTAL. |
@pmakani, thanks for creating this PR. I have discussed this issue with other members of the Pub/Sub team to determine the best solution. We would like to close the subStub, as you do in this PR. However, as part of the shutdown process, we would like make sure we process all outstanding acks/nacks. We would only like to close the stub once all related rpcs have completed. |
Fixes #5227, #4211