subscription_admin_client hanging on GCP when attempting to create subscriptions. #10438
-
Hi all, I've run into an issue where subscription_admin_client.CreateSubscription() hangs when I'm trying to create subscription Ids on GCP. I'm getting no authentication errors and the code isn't throwing any exceptions. It just freezes at that line of code for the first iteration of the for-loop below until the kubernetes pod restarts it. The topics I'm attempting to subscribe to exist and I've been assured that all the permissions are set correctly. Furthermore I was able to create subscriptions, subscribe to them, and receive messages with no issues when using the pubsub emulator locally. Currently using 2.4.x, not sure which exact tag. Any insights on where to start looking next? TIA.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hmm... Can you share how many subscriptions you are trying to create? There are relatively low quota limits for these things: https://cloud.google.com/pubsub/quotas You may also want to turn on logging in the library (TL;DR; set https://googleapis.dev/cpp/google-cloud-pubsub/latest/index.html#autotoc_md5 That may show you if the requests are failing with some kind of retryable error and what error that is. Finally, it is possible we need to set some kind of timeout on the RPCs. There are no public APIs to do this, but there are some internal-only APIs we could use to get you unblocked (pun intended). |
Beta Was this translation helpful? Give feedback.
So I just realized I was still passing in the pubsub emulator port as an environment variable... Everything is working as expected now, my apologies for the false alarm. Thank you again for all the help!