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

test(spanner): propagate errors from 'Transaction.batch_update' #9393

Merged
merged 2 commits into from
Oct 22, 2019
Merged

test(spanner): propagate errors from 'Transaction.batch_update' #9393

merged 2 commits into from
Oct 22, 2019

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Oct 4, 2019

That API can fail without raising an exception (it returns a status code
and a list of rows affected by each successfull DML statuement).
We would like for our retry mechanism to operate, so raise an exception
for non-zero status inside our unit-of-work function.

Closes #7504

That API can fail without raising an exception (it returns a status code
and a list of rows affected by each successfull DML statuement).
We would like for our retry mechanism to operate, so raise an exception
for non-zero status inside our unit-of-work function.

Closes #7504
@tseaver tseaver added testing api: spanner Issues related to the Spanner API. labels Oct 4, 2019
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 4, 2019
Copy link
Contributor

@larkee larkee left a comment

Choose a reason for hiding this comment

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

LGTM assuming the import order is correct

@tseaver tseaver merged commit 62c4f5a into googleapis:master Oct 22, 2019
@tseaver tseaver deleted the 7504-spanner-systest-batch_update-aborts branch October 22, 2019 19:31
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 Spanner API. cla: yes This human has signed the Contributor License Agreement. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spanner: 'test_transaction_batch_update_and_execute_dml' systest flakes with unexpected status code.
3 participants