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

Unable to list and return status of Instance long running operaions #2022

Open
nielm opened this issue Mar 19, 2024 · 0 comments
Open

Unable to list and return status of Instance long running operaions #2022

nielm opened this issue Mar 19, 2024 · 0 comments
Labels
api: spanner Issues related to the googleapis/nodejs-spanner API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@nielm
Copy link

nielm commented Mar 19, 2024

Environment details

  • OS: All
  • Node.js version: v20.11.1
  • npm version: 10.2.4
  • @google-cloud/spanner version: 7.5.0

Steps to reproduce

  • Start a long running Instance operation externally to Node.JS, for example changing size of an instance.
  • Retrieve the Operation ID (projects/xxx/instances/yyy/operations/zzz) of this LRO
  • Attempt to use the Node.JS Cloud Spanner Client Library to retrieve the status of this operation using only the Operation ID.

This is not possible - There is no public interface to list or get LROs on the instance object (by contrast there is an interfacev to get the InstanceConfigOperations

This is only possible using the REST API:

@nielm nielm added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Mar 19, 2024
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/nodejs-spanner API. label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/nodejs-spanner API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

1 participant