spanner: If panic occurs in ReadWriteTransaction, the session will leak #3460
Labels
api: spanner
Issues related to the Spanner API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Client
Spanner
Environment
macOS Catalina
Go Environment
$ go version
$ go env
Code
e.g.
Expected behavior
When a panic occurs in
ReadWriteTransaction
, the session will leak.I want to solve this problem.
I think that I need to rebuild the client to recover from the leaked session, but this is difficult to take care of.
Actual behavior
This is the output result. The last result is not returned.
If you set the loop count to 4, it will return.
Additional context
I have a proposed fix for the problem and will create a pull request.
go.mod
The text was updated successfully, but these errors were encountered: