A subscription suddenly and silently stops receiving messages #1779
Labels
api: pubsub
Issues related to the googleapis/nodejs-pubsub API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
This issue might be related to #979 or #1135
Environment details
@google-cloud/pubsub
version: 3.7.2Steps to reproduce
Delivery type: Pull
Subscription expiration: Subscription expires in 31 days if there is no activity.
Acknowledgement deadline: 300 seconds
Subscription message retention duration: 7 days
Retain acknowledged messages: No
Exactly once delivery: Disabled
Message ordering: Disabled
Dead lettering: Disabled
Retry policy: Retry immediately
Also, locally it's created with:
Other details
Code implementation
Code is running in cloud run.
This is how I register a subscription
As you see I'm handling both 'error' and 'close' events but they are never triggered
GRPC logs
By the recommendations in one of the threads, I've enabled the grpc trace logs, and this is what I have.
This is a normal execution of my process
As far as I understand, grpc traces look ok, publishing, then modifying the ack, and then acknowledging. This happens non-stop for hours.
Here are only the grpc traces:
Then, all of a sudden, with no external input, these starts to appear
And after that, no more messages are received by the subscription.
I believe this is a bug, and it's related to previous bugs that haven't been solved, or that are reappearing again. Am I doing something wrong? Is there anything I'm missing? Thanks!
Thanks!
The text was updated successfully, but these errors were encountered: