Skip to content

spanner-jdbc: Do not close TransactionManager twice - #6095

Merged
olavloite merged 1 commit into
googleapis:masterfrom
olavloite:spanner-jdbc-unflake-singleusetx-test
Aug 16, 2019
Merged

spanner-jdbc: Do not close TransactionManager twice#6095
olavloite merged 1 commit into
googleapis:masterfrom
olavloite:spanner-jdbc-unflake-singleusetx-test

Conversation

@olavloite

Copy link
Copy Markdown
Contributor

Do not close the TransactionManager two different threads. The fireAndForgetRollbackAndCloseTxManager(...) call will close the transaction manager after the commit. The main thread should not also close the transaction manager.

Updates #6075

Do not close the TransactionManager twice in two different threads.
The fireAndForgetRollbackAndCloseTxManager(...) call will close the
transaction manager after the commit. The main thread should not also
close the transaction manager.
@olavloite
olavloite requested a review from kolea2August 16, 2019 11:42
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 16, 2019
@codecov

codecovBot commented Aug 16, 2019

Copy link
Copy Markdown

Codecov Report

Merging #6095 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@ Coverage Diff @@## master #6095 +/- ##
============================================
- Coverage 47.38% 47.38% -0.01% + Complexity 27182 27180 -2 
============================================
Files 2523 2523 Lines 274581 274580 -1 Branches 31380 31380 ============================================
- Hits 130123 130119 -4 - Misses 134850 134851 +1 - Partials 9608 9610 +2
Impacted FilesCoverage ΔComplexity Δ
...oogle/cloud/spanner/jdbc/SingleUseTransaction.java86.81% <100%> (-0.97%)39 <0> (-1)
...able/gaxx/reframing/ReframingResponseObserver.java88.99% <0%> (-1.84%)29% <0%> (-1%)
...ain/java/com/google/cloud/pubsub/v1/Publisher.java89.45% <0%> (+0.34%)40% <0%> (ø)⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1daf76a...8b360a9. Read the comment docs.

@olavloite
olavloite merged commit 81aad64 into googleapis:masterAug 16, 2019
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
Do not close the TransactionManager twice in two different threads. The fireAndForgetRollbackAndCloseTxManager(...) call will close the transaction manager after the commit. The main thread should not also close the transaction manager.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@olavloite@kolea2@googlebot