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

pubsub stream silently stopping to pull messages #225

Open
pocesar opened this issue Jan 3, 2024 · 0 comments
Open

pubsub stream silently stopping to pull messages #225

pocesar opened this issue Jan 3, 2024 · 0 comments

Comments

@pocesar
Copy link
Contributor

pocesar commented Jan 3, 2024

This issue seems to happen to all clients (nodejs, ruby, python, etc), so most likely a expected broken behavior from GCP Pub/Sub. Per documentation, streaming pull always returns an error when it closes. In my scenario, it stopped pulling messages and only resumed when the pod received a SIGTERM and restarted.

StreamingPull has a 100% error rate
StreamingPull streams always close with a non-OK status. Unlike in unary RPCs, this status for StreamingPull is simply an indication that the stream is broken. The requests are not failing. Therefore, while the StreamingPull API might have a surprising 100% error rate, this behavior is by design.

Some devs pointed it to the "excess pings", the stream just sitting there idle forever, RST_STREAM errors, etc. Might be out of the scope of this crate, but if it's worth investigating and mitigating this "defect by design" at the lower level would be very welcomed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant