Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

fix: ignore errors during Connection.close()#1877

Merged
olavloite merged 2 commits intomainfrom
ignore-errors-in-close
May 17, 2022
Merged

fix: ignore errors during Connection.close()#1877
olavloite merged 2 commits intomainfrom
ignore-errors-in-close

Conversation

@olavloite
Copy link
Copy Markdown
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 a team, ansh0l and rajatbhatta 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 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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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