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

fix(pubsub): use grpc conn pool option for subscriber client #2624

Merged
merged 1 commit into from Jul 21, 2020

Conversation

hongalex
Copy link
Member

Back in February 2020, google.golang.org/api/transport/grpc switched to using a single grpc connection for Dial starting in v0.20.0. While the publisher client started to use DialPool, the subscriber client did not switch to connection pooling. This was causing an issue where number of open streams was being capped at about 100.

This change has the additional effect of separating the previously shared connection between publisher and subscriber, which should have a minimal effect on most uers.

Fixes #2593

@hongalex hongalex requested a review from broady July 21, 2020 22:50
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 21, 2020
@hongalex hongalex changed the title fix(pubsub): use GRPCConnPool option for subscriber client fix(pubsub): use grpc conn pool option for subscriber client Jul 21, 2020
@hongalex hongalex added the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 21, 2020
@kokoro-team kokoro-team removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 21, 2020
@broady
Copy link
Contributor

broady commented Jul 21, 2020

Thanks for tracking that down!

Copy link
Contributor

@tbpg tbpg left a comment

Choose a reason for hiding this comment

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

Nice find!

@hongalex hongalex merged commit 6121668 into googleapis:master Jul 21, 2020
@hongalex hongalex deleted the pubsub-fix-grpc-conn branch July 21, 2020 23:46
@jesushernandez
Copy link

Thanks @hongalex ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pubsub: process hanging forever when large number of subscription combined with NumGoroutines
5 participants