Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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