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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add configurable leader placement support #399

Merged
merged 9 commits into from Jul 29, 2021

Conversation

zoercai
Copy link
Contributor

@zoercai zoercai commented Jul 6, 2021

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 馃

@zoercai zoercai requested review from hengfengli, skuruppu and larkee Jul 6, 2021
@zoercai zoercai requested a review from as a code owner Jul 6, 2021
@google-cla google-cla bot added the cla: yes label Jul 6, 2021
@product-auto-label product-auto-label bot added the api: spanner label Jul 6, 2021
@zoercai zoercai added do not merge and removed api: spanner cla: yes labels Jul 6, 2021
@google-cla google-cla bot added the cla: yes label Jul 6, 2021
Copy link

@hengfengli hengfengli left a comment

LGTM.

@product-auto-label product-auto-label bot added the api: spanner label Jul 6, 2021
@hengfengli
Copy link

@hengfengli hengfengli commented Jul 21, 2021

Hi @zoercai , the error is:

E   google.api_core.exceptions.FailedPrecondition: 400 The instance configuration projects/***/instanceConfigs/regional-us-central1 does not support default_leader settings.

We need to create a multi-region instance in order to test default_leader. default_leader does not work for a regional instance. Two options we have here:

  1. Create a multi-region instance to test default_leader
  2. Do the integration test in sample tests (this is what we do in java)

@hengfengli hengfengli removed the do not merge label Jul 21, 2021
Copy link
Contributor

@larkee larkee left a comment

Implementation LGTM.

Some changes are needed for the system tests

tests/system/test_system.py Outdated Show resolved Hide resolved
tests/system/test_system.py Outdated Show resolved Hide resolved
tests/system/test_system.py Outdated Show resolved Hide resolved
@zoercai zoercai requested a review from larkee Jul 29, 2021
@zoercai zoercai added the kokoro:force-run label Jul 29, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run label Jul 29, 2021
larkee
larkee approved these changes Jul 29, 2021
Copy link
Contributor

@larkee larkee left a comment

Minor nit for Python style but the rest LGTM 馃憤

tests/system/test_system.py Outdated Show resolved Hide resolved
@zoercai zoercai added the automerge label Jul 29, 2021
@gcf-merge-on-green gcf-merge-on-green bot merged commit 7f1b120 into googleapis:master Jul 29, 2021
10 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge label Jul 29, 2021
gcf-merge-on-green bot pushed a commit that referenced this issue Jul 30, 2021
馃 I have created a release \*beep\* \*boop\*
---
## [3.7.0](https://www.github.com/googleapis/python-spanner/compare/v3.6.0...v3.7.0) (2021-07-29)


### Features

* add always_use_jwt_access ([#381](https://www.github.com/googleapis/python-spanner/issues/381)) ([0f1a5de](https://www.github.com/googleapis/python-spanner/commit/0f1a5ded572685a96d29a60c959cb00a48f7a87f))
* add configurable leader placement support ([#399](https://www.github.com/googleapis/python-spanner/issues/399)) ([7f1b120](https://www.github.com/googleapis/python-spanner/commit/7f1b1209e62062014545cf959d41f04184552eec))
* add sample for low cost instances ([#392](https://www.github.com/googleapis/python-spanner/issues/392)) ([3f4f93f](https://www.github.com/googleapis/python-spanner/commit/3f4f93f75f5585a82047bf8d83a24622ad776ecb))


### Bug Fixes

* avoid bad version of `opentelemetry-instrumentation` ([#429](https://www.github.com/googleapis/python-spanner/issues/429)) ([1620c12](https://www.github.com/googleapis/python-spanner/commit/1620c12a56e0d007cf010690bab303db06d0c914))
* **deps:** pin 'google-{api,cloud}-core' to allow 2.x versions ([#415](https://www.github.com/googleapis/python-spanner/issues/415)) ([b0455d0](https://www.github.com/googleapis/python-spanner/commit/b0455d0ab657cd053a7527e99bdbfadc4de23b30))
* disable always_use_jwt_access ([c37bf21](https://www.github.com/googleapis/python-spanner/commit/c37bf21afdf417757eff67fe8500aa65f49fd5ad))
* disable always_use_jwt_access ([#395](https://www.github.com/googleapis/python-spanner/issues/395)) ([c37bf21](https://www.github.com/googleapis/python-spanner/commit/c37bf21afdf417757eff67fe8500aa65f49fd5ad))
* enable self signed jwt for grpc ([#427](https://www.github.com/googleapis/python-spanner/issues/427)) ([2487800](https://www.github.com/googleapis/python-spanner/commit/2487800e31842a44dcc37937c325e130c8c926b0))
* support merging for NUMERIC values ([#434](https://www.github.com/googleapis/python-spanner/issues/434)) ([06b4215](https://www.github.com/googleapis/python-spanner/commit/06b4215f76ae806eba1d0d07115c8c90b8c7482d)), closes [#433](https://www.github.com/googleapis/python-spanner/issues/433)


### Documentation

* fix docstring for session.py ([#387](https://www.github.com/googleapis/python-spanner/issues/387)) ([3132587](https://www.github.com/googleapis/python-spanner/commit/3132587453f7bd0be72ebc393626b5c8b1bab982))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner cla: yes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants