GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — spanner-jdbc: Do not close TransactionManager twice by olavloite · Pull Request #6095 · googleapis/google-cloud-java

Conversation

@olavloite

@olavloite olavloite commented Aug 16, 2019

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@olavloite
do not close txmanager twice
8b360a9
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 kolea2 August 16, 2019 11:42
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 16, 2019
@olavloite olavloite mentioned this pull request Aug 16, 2019
spanner-jdbc: Add jdbc statement integration tests #6033
Merged
kolea2
kolea2 approved these changes Aug 16, 2019
View reviewed changes
@codecov

codecov Bot commented Aug 16, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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 Files Coverage Δ Complexity Δ
...oogle/cloud/spanner/jdbc/SingleUseTransaction.java 86.81% <100%> (-0.97%) 39 <0> (-1)
...able/gaxx/reframing/ReframingResponseObserver.java 88.99% <0%> (-1.84%) 29% <0%> (-1%)
...ain/java/com/google/cloud/pubsub/v1/Publisher.java 89.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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olavloite
olavloite merged commit 81aad64 into googleapis:master Aug 16, 2019
This was referenced Aug 22, 2019
Release google-cloud-java v0.106.0 #6127
Closed
Release google-cloud-java v0.106.0 #6140
Merged
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
@olavloite
do not close txmanager twice (googleapis#6095)
91884ea
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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@kolea2 kolea2 kolea2 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@olavloite @kolea2 @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.