Skip to content

Session recycling issue #665

@egonelbre

Description

@egonelbre

We've been seeing some kind of session recycling issue in our unit tests. I'm not quite sure where exactly the problem lies. It could be a spanner emulator bug, or something in the default spanner library. I was unable to recreate the issue using just spanner library and spanner emulator, so I'm suspecting go-sql-spanner.

The error message is the following:

ExecContext failed: spanner: code = "FailedPrecondition", desc = "Cannot read or query using a transaction after it has been committed or rolledback.", requestID = "1.4e5b33ee11eb3bc7.1.3.246.1"

Or

Previously received a different request with this seqno

I synthesized regression tests using ai here #664.

#626 and #608 could be due to the same reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions