| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Here is the summary of changes. You are about to add 7 region tags.
This comment is generated by snippet-bot.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Currently, you are creating an instance within the spanner_create_database_with_default_leader and spanner_update_database_with_default_leader samples.
This is an issue as if there is a failure later on in the sample, the instance does not get cleaned up correctly. Additionally the second sample fails as it tried to create the same instance.
The instance creation should be removed from the samples and you should instead be using sample_instance, or a pytest fixture that uses sample_instance. This will ensure that the instance clean up is handled correctly.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM once the implementation is merged and released 👍
Sorry, something went wrong.
…mr-1-samples # Conflicts: # tests/system/test_system.py
There was a problem hiding this comment.
Having just written the samples for PHP I noticed some inconsistencies. Just a few changes for the list_* samples
Sorry, something went wrong.
|
@zoercai Why do we get an error Instance already exist? value = None from_value = <_InactiveRpcError of RPC that terminated with: status = StatusCode.ALREADY_EXISTS details = "Instance already exist...message":"Instance already exists: projects/precise-truck-742/instances/google-cloud-1628122209464","grpc_status":6}" > > ??? E google.api_core.exceptions.AlreadyExists: 409 Instance already exists: projects/precise-truck-742/instances/google-cloud-1628122209464 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Samples for #399. Implementation code will be gone once #399 is merged.