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
samples: add default leader options samples #428
Conversation
Here is the summary of changes. You are about to add 7 region tags.
This comment is generated by snippet-bot.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once the implementation is merged and released 👍
…mr-1-samples # Conflicts: # tests/system/test_system.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having just written the samples for PHP I noticed some inconsistencies. Just a few changes for the list_*
samples
@zoercai Why do we get an error
|
Samples for #399. Implementation code will be gone once #399 is merged.