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

Multiple calls to Pub/Sub Policy.open() can "interact" #4488

Closed
dhermes opened this issue Nov 29, 2017 · 0 comments · Fixed by #4606
Closed

Multiple calls to Pub/Sub Policy.open() can "interact" #4488

dhermes opened this issue Nov 29, 2017 · 0 comments · Fixed by #4606
Assignees
Labels
api: pubsub Issues related to the Pub/Sub API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: cleanup An internal cleanup or hygiene concern.

Comments

@dhermes
Copy link
Contributor

dhermes commented Nov 29, 2017

E.g. if you call Policy.open() a second time then it will overwrite the callback attached to the Policy.

ISTM that we should "tombstone" a Policy so that it can't be open()-ed more than once.

@dhermes dhermes added api: pubsub Issues related to the Pub/Sub API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: cleanup An internal cleanup or hygiene concern. labels Nov 29, 2017
@dhermes dhermes changed the title Multiple calls to Policy.open() can "interact" Multiple calls to Pub/Sub Policy.open() can "interact" Nov 29, 2017
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 16, 2017
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 18, 2017
dhermes added a commit that referenced this issue Dec 18, 2017
…icy. (#4606)

Similar with `Policy.close()`.

Fixes #4488.

Also returning the future from `Policy.close()`.
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 Pub/Sub API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant