You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently pulling from a PubSub subscription with large messages (>4MB) will cause the stream to terminate. I have not tried but I believe publishing large messages (>4MB) to a topic will trigger the same stream termination.
The cause is a change in tonic 0.9.0, specifically this PR which adds a maximum encode/decode message size, which defaults to 4MB.
PubSub supports up to 10MB, so we should try update google-cloud-rust to specify a larger size when sending the stream request.
Basic Reproduction Case
Putting together something simple together and running with RUST_LOG=error cargo run
ERROR google_cloud_pubsub::subscriber: terminated subscriber streaming with error Status { code: OutOfRange, message: "Error, message length too large: found 4750628 bytes, the limit is: 4194304 bytes", source: None } : projects/my-project/subscriptions/my-subscription
Currently pulling from a PubSub subscription with large messages (>4MB) will cause the stream to terminate. I have not tried but I believe publishing large messages (>4MB) to a topic will trigger the same stream termination.
The cause is a change in tonic 0.9.0, specifically this PR which adds a maximum encode/decode message size, which defaults to 4MB.
PubSub supports up to 10MB, so we should try update
google-cloud-rust
to specify a larger size when sending the stream request.Basic Reproduction Case
Putting together something simple together and running with
RUST_LOG=error cargo run
Gives the following error:
Which I've traced to this addition in the above PR.
The text was updated successfully, but these errors were encountered: