Skip to content

Conversation

@olavloite
Copy link
Collaborator

A connection will automatically rollback any active transactions when
the connection is closed. If the rollback would throw an exception, the
close would fail and the connection would still be marked as open. This
fix adds a simple ignore error handler when rolling back a transaction
when the connection is closed.

A connection will automatically rollback any active transactions when
the connection is closed. If the rollback would throw an exception, the
close would fail and the connection would still be marked as open. This
fix adds a simple ignore error handler when rolling back a transaction
when the connection is closed.
@olavloite olavloite requested review from ansh0l and rajatbhatta May 14, 2022 09:10
@olavloite olavloite requested a review from a team as a code owner May 14, 2022 09:10
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: spanner Issues related to the googleapis/java-spanner API. labels May 14, 2022
@olavloite olavloite requested a review from a team as a code owner May 14, 2022 09:12
@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels May 14, 2022
Copy link
Contributor

@rajatbhatta rajatbhatta left a comment

Choose a reason for hiding this comment

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

I've a small query. Apart from it, everything LGTM.

@olavloite olavloite merged commit 6ab8ed2 into main May 17, 2022
@olavloite olavloite deleted the ignore-errors-in-close branch May 17, 2022 07:01
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. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants