New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently active transaction should be rolled back on connection close #279
Comments
Filed googleapis/java-spanner#504 to check |
Re-test when google-cloud-spanner:2.0.3 is released. |
Re-tested; works great with the latest client library. For posterity, the scenario is to run Infrastructure steps:
Code (run twice to make sure bug is gone); set up environment variable
|
I was testing the emulator, and found a test bug in which a transaction was started, and then neither committed nor rolled back. However, connection was closed properly. Spanner emulator is very strict about leaving transactions hanging being a Bad Life Choice (you'll have to restart the emulator to get out of this scenario), which is how I realized there was a problem in the test I was working with.
If the connection is closed without an explicit commit/rollback, we should be calling rollback in the driver.
The text was updated successfully, but these errors were encountered: