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
Expected behavior
Up to version 1.10.1, the pubsub library seemed to be quite resilient against missing network connections when calling .Receive.
I would expect that resilience to remain present across a bugfix-update.
Actual behavior
Since version 1.10.2, calling .Receive on a Subscription returns an error when having no network access.
The retrieval of the configuration introduced here seems to trigger a remote call, returning an error if that fails.
Additional context
Waiting for a few seconds before calling .Receive worked around the issue for me (with the root cause probably being a delay introduced to the network connections being available by the istio configuration), so this change in behaviour will not be apparent when running locally.
As this seems to be a significant change in the behaviour of the library that I didn’t expect in a bugfix release, I thought you may want to be aware of it in case it wasn’t intended.
The text was updated successfully, but these errors were encountered:
Thanks for reporting. Yeah, resiliency to network issues isn't something we guarantee in our libraries. With that said, this behavior should be intact again in v1.10.3 (specifically this change), as I moved the config check further down so it's only used when we detect ordering keys in the messages received. Also, errors from that call are transparent now and won't be returned by the Receive call. Closing for now, but let me know if any of that needs clarification.
Client
PubSub
Environment
Alpine Docker on GKE
Go Environment
$ go version
1.16.3
$ go env
Code
Expected behavior
Up to version 1.10.1, the pubsub library seemed to be quite resilient against missing network connections when calling
.Receive
.I would expect that resilience to remain present across a bugfix-update.
Actual behavior
Since version 1.10.2, calling
.Receive
on aSubscription
returns an error when having no network access.The retrieval of the configuration introduced here seems to trigger a remote call, returning an error if that fails.
Additional context
Waiting for a few seconds before calling
.Receive
worked around the issue for me (with the root cause probably being a delay introduced to the network connections being available by the istio configuration), so this change in behaviour will not be apparent when running locally.As this seems to be a significant change in the behaviour of the library that I didn’t expect in a bugfix release, I thought you may want to be aware of it in case it wasn’t intended.
The text was updated successfully, but these errors were encountered: