-
Notifications
You must be signed in to change notification settings - Fork 555
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
Received message larger than max: PubSub error and message loop #1467
Comments
Thanks for the issue. We'll investigate this and let you know what we find. |
@murgatroid99 It looks like a possible solution is to enable the following settings on the GRPC client:
Is that reasonable? If so, are these names and values supposed to be provided in the |
Yes, that should do what you want, and they are supposed to be provided in the |
Well, it was fixed for node, but not for Ruby. :) Can we set the channel args on GRPC::Core::Channel? I'm having a hard time finding docs for it. The GAPIC layer takes care of creating a GRPC client for us, but we provide a channel object as an argument. |
That's what I get for not paying attention to which repo I'm looking at. Yes, when constructing a client stub, those should be passed in a hash in the |
Add args to set the send and recieve message length to MAX. [fixes googleapis#1467]
Thank you for the confirmation. I have reproduced this error, added the channel_args configuration, and verified the fix. Opening a PR for this change. |
Add Pub/Sub GRPC channel args [closes #1467]
This happens in the Python SDK as well. Is this an SDK error? |
I think this also applies to Datastore, when using |
Reproduce Steps:
Error: Received message larger than max (xxxxx vs. 4194304)
References
Impact
I believe gRPC introduced a request limit of 4MB. But PubSub quotas clearly says, maximum message size can be 10MB. So many people already utilize this quota as a guidance, and publish messages upto 10MB. Example.
Because the quota is broken out-of-the-box by PubSub ruby client (which uses gRPC internally in one of the latest releases I think), messages don't get acked, and circulate in the system for 1 week (PubSub has fixed 1 week retention policy). So put all together, the backpressure is really bad. We had to drop all our subscriptions twice now in the course of debugging this error.
The text was updated successfully, but these errors were encountered: