-
Notifications
You must be signed in to change notification settings - Fork 129
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
docs(samples): add samples and tests for change streams transaction exclusion #3098
docs(samples): add samples and tests for change streams transaction exclusion #3098
Conversation
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
Hi @rahul2393 Could you please take a look at this pr? This is a Java version of GoogleCloudPlatform/golang-samples#4108 for code samples using change streams transaction exclusion. The newest BOM release now contains the needed source code change so this pull request should be ready to merge. Thank you! |
samples/snippets/src/main/java/com/example/spanner/ChangeStreamsTxnExclusionSample.java
Outdated
Show resolved
Hide resolved
samples/snippets/src/main/java/com/example/spanner/ChangeStreamsTxnExclusionSample.java
Outdated
Show resolved
Hide resolved
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, with some nits on project/instance naming
Convert to draft since this feature is still not fully enabled by default. |
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
87cfe16
to
25e2f8b
Compare
25e2f8b
to
413f445
Compare
413f445
to
57d3ad5
Compare
1f81600
into
googleapis:main
| Package | Type | Package file | Manager | Update | Change | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-spanner](https://github.com/googleapis/java-spanner) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `6.85.0` -> `6.86.0` | --- ### Release Notes <details> <summary>googleapis/java-spanner (com.google.cloud:google-cloud-spanner)</summary> ### [`v6.86.0`](https://github.com/googleapis/java-spanner/blob/HEAD/CHANGELOG.md#6860-2025-01-31) ##### Features - Add sample for asymmetric autoscaling instances ([#​3562](googleapis/java-spanner#3562)) ([3584b81](googleapis/java-spanner@3584b81)) - Support graph and pipe queries in Connection API ([#​3586](googleapis/java-spanner#3586)) ([71c3063](googleapis/java-spanner@71c3063)) ##### Bug Fixes - Always add instance-id for built-in metrics ([#​3612](googleapis/java-spanner#3612)) ([705b627](googleapis/java-spanner@705b627)) - **deps:** Update the Java code generator (gapic-generator-java) to 2.51.1 ([3e27251](googleapis/java-spanner@3e27251)) - **deps:** Update the Java code generator (gapic-generator-java) to 2.52.0 ([bf69673](googleapis/java-spanner@bf69673)) - **spanner:** Moved mTLSContext configurator from builder to construtor ([#​3605](googleapis/java-spanner#3605)) ([ac7c30b](googleapis/java-spanner@ac7c30b)) ##### Dependencies - Update dependency com.google.cloud:sdk-platform-java-config to v3.42.0 ([#​3616](googleapis/java-spanner#3616)) ([2ea59f0](googleapis/java-spanner@2ea59f0)) - Update dependency io.opentelemetry:opentelemetry-bom to v1.46.0 ([#​3530](googleapis/java-spanner#3530)) ([d505850](googleapis/java-spanner@d505850)) ##### Documentation - Clarify how async updates can overtake each other ([#​3581](googleapis/java-spanner#3581)) ([1be250f](googleapis/java-spanner@1be250f)) - Fix typo timzeone -> timezone ([bf69673](googleapis/java-spanner@bf69673)) - Fixed parameter arguments for AbstractResultSet's Listener's on TransactionMetadata doc ([#​3602](googleapis/java-spanner#3602)) ([1f143a4](googleapis/java-spanner@1f143a4)) - **samples:** Add samples and tests for change streams transaction exclusion ([#​3098](googleapis/java-spanner#3098)) ([1f81600](googleapis/java-spanner@1f81600)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 6pm every weekday,before 2am every weekday" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Never, 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, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). GitOrigin-RevId: ae3d6e05ea6da84db9faf0e473fd148d6ad36a6e
Add samples and IT tests on setting
Options.excludeTxnFromChangeStreams()
in various write requests. This is a follow up after #2959