Skip to content

CloudFunction connects to an existing subscription and sometimes cannot see messages or sends messages to a topic and they never arrive #2728

@lc-chrisbarton

Description

@lc-chrisbarton

A CloudFunction connects to an existing subscription and sometimes cannot see messages while the same code run locally sees messages. This happens using the PubSub library 0.14.5. This issue is intermittent but frequent. Redeploying the function fixes it. There is also a problem adding messages to a topic from a CloudFunction which is also fixed by redeploying the function.

See attached logs of the function connecting to a subscription but seeing no messages while the other log shows the same code run later and locally and seeing messages. The issue is happening now in one function (others are ok). This is a test environment that is just testing this issue so we are controlling messages into the system in order to try to pin down the problem. I will downgrade the client version to 0.13.x and report back in a few days on whether that fixes the issue (issue is intermittent).

cloudfunction.log
local.log

Metadata

Metadata

Labels

coretype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions