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

Retry subscription with autocreate not working properly #2006

Open
7 tasks done
dikatok opened this issue Dec 16, 2024 · 0 comments
Open
7 tasks done

Retry subscription with autocreate not working properly #2006

dikatok opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
api: pubsub Issues related to the googleapis/nodejs-pubsub API.

Comments

@dikatok
Copy link

dikatok commented Dec 16, 2024

Please make sure you have searched for information in the following guides.

A screenshot that you have tested with "Try this API".

This is SDK problem

Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.

https://gist.github.com/dikatok/1d5bdf555ea08c041539e28e35bf2d03

A step-by-step description of how to reproduce the issue, based on the linked reproduction.

"@google-cloud/pubsub": "4.8.0"
firebase-tools 13.28.0

  1. Run local pubsub emulator (I am using the one bundled with Firebase emulator suite)
  2. Run the subscriber
  3. Stop the emulator
  4. Subscriber will retry to reconnect
Screenshot 2024-12-16 at 10 56 23
  1. Run the emulator again
  2. Subscriber reconnects but will throw an error about subscription is not exist and not retrying again
Screenshot 2024-12-16 at 10 56 14

A clear and concise description of what the bug is, and what you expected to happen.

Subscriber would retry to connect successfully and re-create the subscription since autocreate is set to true

A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **

Subscriber would re-create the subscription and try to reconnect

@product-auto-label product-auto-label bot added the api: pubsub Issues related to the googleapis/nodejs-pubsub API. label Dec 16, 2024
@leahecole leahecole self-assigned this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/nodejs-pubsub API.
Projects
None yet
Development

No branches or pull requests

2 participants