Skip to content

Ignore ErrTxDone when closing transactions#3738

Merged
mhutchinson merged 1 commit intogoogle:masterfrom
mhutchinson:b3734-quietOnDuplicateRollback
Feb 18, 2025
Merged

Ignore ErrTxDone when closing transactions#3738
mhutchinson merged 1 commit intogoogle:masterfrom
mhutchinson:b3734-quietOnDuplicateRollback

Conversation

@mhutchinson
Copy link
Contributor

Transactions can be closed in indirect ways, such as the context being cancelled. The old code would log an error when then occurred, but the new code checks for the transaction already being closed and treats this as a success. Fixes #3734 and fixes #2998. Note that this doesn't change the behaviour except for the log output spam.

Transactions can be closed in indirect ways, such as the context being cancelled. The old code would log an error when then occurred, but the new code checks for the transaction already being closed and treats this as a success. Fixes google#3734 and fixes google#2998. Note that this doesn't change the behaviour except for the log output spam.
@mhutchinson mhutchinson requested a review from a team as a code owner February 18, 2025 09:33
@mhutchinson mhutchinson requested a review from phbnf February 18, 2025 09:33
@mhutchinson mhutchinson merged commit 0ebd9da into google:master Feb 18, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants