Skip to content

Spanner: Automatically release session to the pool when read/query ends on single use transaction #2666

@vkedia

Description

@vkedia

Currently in a single use transaction, when the ResultSet returned by read/executeQuery is closed or it completely iterated on (till next returns false), we release the session to the pool. This is error prone as the user might not do either.
Instead of this we should automatically free up the session when the rpc finished.

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the Spanner API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions