-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Google PubSub: PubSub subscriber not consuming when in K8S (works locally) #4737
Comments
I might be experiencing the same thing. If I wait long enough on my OSX, it also happens. But on both K8s and OSX it can take several hours until it occurs, depending on what I set for flow_control. My symptom is that after several hours of running, even though Stackdriver still says there are still millions of messages in the PubSub subscription, my code doesn't consume anymore, and _load is at 0.0. If I restart the pod, it starts working again |
@anorth2 please also show your subscriber setup. Mine is pretty much like the examples:
Deployed to K8S, and not receiving/processing anything. |
Digging through code; trying to see if there's debug mode to tell me if messages are being dropped, or if the consumer is stuck in UPDATE
|
Possibly related to grpc/grpc/issues/13746 ? |
So...any updates on this? |
@opyate looks like youre mixing old and new pubsub. according to latest docs you need to actually call |
@ekhaydarov the API must've changed since my comment. Thanks for flagging up the changes. |
The research in #4978 was carried out on k8s. I'm closing this issue for now as not reproducable, but if it still appears when using grpcio 1.10.0rc2, let us know. |
Possibly related to this: googleapis/nodejs-pubsub#11
Note that this issue occurs most of the time but not always. Sometimes it works with no rhyme or reason as to why.
OS type and version
Alpine Linux Docker image deployed in K8S
Docker image works when deployed locally on Mac (High Sierra)
Python version and virtual environment information
python --version
Python 3.6.3
google-cloud-pubsub==0.30.1
Stacktrace if available
K8S: CI logs
locally:
Steps to reproduce
Deploy subscriber to K8S, watch it fail.
Code example
callback code:
Using GitHub flavored markdown can help make your request clearer.
See: https://guides.github.com/features/mastering-markdown/
The text was updated successfully, but these errors were encountered: