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

fix: AsyncTransactionManager did not propagate statement errors #516

Merged
merged 2 commits into from Oct 16, 2020

Conversation

olavloite
Copy link
Collaborator

Invalid statements or other statements that would cause an error would not cause the returned ApiFuture to fail.

Fixes #514

Invalid statements or other statements that would cause an error would not cause the
returned ApiFuture to fail.

Fixes #514
@olavloite olavloite requested a review from a team as a code owner October 15, 2020 15:51
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 15, 2020
Copy link
Contributor

@elefeint elefeint left a comment

Choose a reason for hiding this comment

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

Thank you!

public void asyncTransactionManager_shouldPropagateStatementFailure()
throws ExecutionException, InterruptedException, TimeoutException {
final Statement garbledStatement =
Statement.newBuilder("INSERT INTO BOOKS (UUID, TITLE) VALUES ('123', 'Test book')jljlk")
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional: use a table more commonly found in client library integration test, so future readers won't have to wonder where BOOKS came from.

@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/java-spanner API. label Oct 16, 2020
@olavloite
Copy link
Collaborator Author

The failing samples test (Java 8) is a known transient error that frequently happens with Kokoro builds.

@olavloite olavloite merged commit 4b8b845 into master Oct 16, 2020
@olavloite olavloite deleted the issue-514 branch October 16, 2020 13:55
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#3563

Changes:

chore: migrate storage to the Python microgenerator
  Committer: @miraleung
  PiperOrigin-RevId: 351829553
  Source-Link: googleapis/googleapis@09487a7

feat: Publish experimental build files for Google Ads API.
  PiperOrigin-RevId: 351813340
  Source-Link: googleapis/googleapis@bbb3fc4

feat: published Database Migration Service v1 logging SDK
  PiperOrigin-RevId: 351738225
  Source-Link: googleapis/googleapis@92fac3a

chore: update gapic-generator ruby to version 0.6.10
  PiperOrigin-RevId: 351705536
  Source-Link: googleapis/googleapis@89e3c50

feat: added client library for Workflows V1 API
  PiperOrigin-RevId: 351656488
  Source-Link: googleapis/googleapis@5e5da38

fix!(analytics/admin): remove unused fields from `EnhancedMeasurementSettings` fix!: `update_mask` field is required for all Update operations feat: add pagination support for `ListFirebaseLinks` operation fix!: rename `country_code` field to `region_code` in `Account` fix!: rename `url_query_parameter` field to `uri_query_parameter` in `EnhancedMeasurementSettings` fix!: remove `parent` field from `GoogleAdsLink`
  PiperOrigin-RevId: 351651504
  Source-Link: googleapis/googleapis@23e7356

chore: Change proto synchronization tool.
  PiperOrigin-RevId: 351632373
  Source-Link: googleapis/googleapis@2707d2e

feat: added client library for Workflows Executions V1 API
  PiperOrigin-RevId: 351618705
  Source-Link: googleapis/googleapis@98911d3
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.

Exceptions not propagated from async function back to async transaction
2 participants