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

feat: support RPC priority #676

Merged
merged 7 commits into from Mar 31, 2021
Merged

feat: support RPC priority #676

merged 7 commits into from Mar 31, 2021

Conversation

olavloite
Copy link
Collaborator

@olavloite olavloite commented Dec 1, 2020

Adds support for setting RPC priority.

@olavloite olavloite added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Dec 1, 2020
@olavloite olavloite requested review from a team as code owners December 1, 2020 11:11
@generated-files-bot
Copy link

Warning: This pull request is touching the following templated files:

  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequest.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequestOrBuilder.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequest.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequestOrBuilder.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequest.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequestOrBuilder.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequest.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequestOrBuilder.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequest.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequestOrBuilder.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java
  • proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/spanner.proto

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 1, 2020
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner API. label Dec 1, 2020
@olavloite
Copy link
Collaborator Author

@thiagotnunes The implementation of this feature should be synchronized with #576 (Tagging), as they both set RequestOptions for both individual statements as well as transactions. The most important question regarding this is whether we want to use TransactionOption to pass in the options for a read/write transaction, or whether we want to add a withSomeOption on TransactionContext for the different options.

@codecov
Copy link

codecov bot commented Dec 1, 2020

Codecov Report

Merging #676 (3abfd4e) into master (a2e5803) will increase coverage by 0.06%.
The diff coverage is 100.00%.

❗ Current head 3abfd4e differs from pull request most recent head 7abb3f8. Consider uploading reports for the commit 7abb3f8 to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##             master     #676      +/-   ##
============================================
+ Coverage     85.10%   85.17%   +0.06%     
- Complexity     2623     2633      +10     
============================================
  Files           155      154       -1     
  Lines         14374    14363      -11     
  Branches       1340     1342       +2     
============================================
  Hits          12233    12233              
+ Misses         1573     1565       -8     
+ Partials        568      565       -3     
Impacted Files Coverage Δ Complexity Δ
.../com/google/cloud/spanner/AbstractReadContext.java 86.82% <100.00%> (+0.28%) 44.00 <2.00> (+2.00)
...rc/main/java/com/google/cloud/spanner/Options.java 92.25% <100.00%> (+4.10%) 85.00 <5.00> (+11.00)
...oogle/cloud/spanner/PartitionedDmlTransaction.java 82.60% <100.00%> (+0.58%) 15.00 <0.00> (+1.00)
...ain/java/com/google/cloud/spanner/SessionImpl.java 86.90% <100.00%> (+0.23%) 31.00 <0.00> (+1.00)
...om/google/cloud/spanner/TransactionRunnerImpl.java 86.24% <100.00%> (+0.17%) 10.00 <0.00> (ø)
...a/com/google/cloud/spanner/SpannerRetryHelper.java 80.95% <0.00%> (-3.67%) 3.00% <0.00%> (ø%)
...m/google/cloud/spanner/connection/SpannerPool.java 87.36% <0.00%> (-0.53%) 33.00% <0.00%> (ø%)
...le/cloud/spanner/connection/ConnectionOptions.java 90.53% <0.00%> (-0.49%) 89.00% <0.00%> (-1.00%)
...ain/java/com/google/cloud/spanner/SessionPool.java 88.93% <0.00%> (ø) 72.00% <0.00%> (+1.00%)
...spanner/admin/database/v1/DatabaseAdminClient.java 87.96% <0.00%> (ø) 72.00% <0.00%> (ø%)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2e5803...7abb3f8. Read the comment docs.

@@ -406,4 +406,51 @@
<className>com/google/cloud/spanner/AbstractLazyInitializer</className>
<method>java.lang.Object initialize()</method>
</difference>

<!-- RPC Priority -->
<difference>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change will break customers and requires a major version bump. This is not optional.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer a breaking change, as the breaking changes that were needed for this and other changes were grouped into a separate change to avoid having to bump the version multiple times. That change added Options... options varargs to the methods that need to support a variety of query / update / transaction options.

@generated-files-bot
Copy link

Warning: This pull request is touching the following templated files:

  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequest.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/BeginTransactionRequestOrBuilder.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequest.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitRequestOrBuilder.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/CommitResponse.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequest.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteBatchDmlRequestOrBuilder.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequest.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ExecuteSqlRequestOrBuilder.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequest.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequestOrBuilder.java
  • proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java
  • proto-google-cloud-spanner-v1/src/main/proto/google/spanner/v1/spanner.proto

@olavloite olavloite requested a review from elharo February 8, 2021 13:22
@thiagotnunes thiagotnunes self-requested a review March 31, 2021 00:01
@larkee larkee added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Mar 31, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 31, 2021
@olavloite
Copy link
Collaborator Author

olavloite commented Mar 31, 2021

@elharo Would you mind taking another look at this PR? As your review requested changes, this PR is currently blocked from merging.

(FYI: The samples build error is unrelated to this change)

@larkee larkee merged commit 0bc9972 into master Mar 31, 2021
@larkee larkee deleted the rpc-priorities branch March 31, 2021 13:29
ansh0l pushed a commit to ansh0l/java-spanner that referenced this pull request Nov 10, 2022
This is an auto-generated regeneration of the .pb.go files by
cloud.google.com/go/internal/gapicgen. Once this PR is submitted, genbot will
update the corresponding PR to depend on the newer version of go-genproto, and
assign reviewers. Whilst this or any regen PR is open in go-genproto, genbot
will not create any more regeneration PRs. If all regen PRs are closed,
gapicgen will create a new set of regeneration PRs once per night.

If you have been assigned to review this PR, please:

- Ensure that CI is passing. If it's failing, it requires your manual attention.
- Approve and submit this PR if you believe it's ready to ship. That will prompt
genbot to assign reviewers to the google-cloud-go PR.

Corresponding google-cloud-go PR: googleapis/google-cloud-go#4761

Changes:

chore: regenerate API index

  Source-Link: googleapis/googleapis@d9ac7fa

feat(recaptchaenterprise): add GetMetrics and MigrateKey methods to reCAPTCHA enterprise API
  PiperOrigin-RevId: 396937887
  Source-Link: googleapis/googleapis@020672e
rajatbhatta pushed a commit to rajatbhatta/java-spanner that referenced this pull request Nov 17, 2022
…onfig to v1.2.2 (googleapis#676)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.1` -> `1.2.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/compatibility-slim/1.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/confidence-slim/1.2.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-shared-config</summary>

### [`v1.2.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#&#8203;122-httpswwwgithubcomgoogleapisjava-shared-configcomparev121v122-2021-11-16)

[Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.1...v1.2.2)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-spanner-jdbc).
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/java-spanner API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants