mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
DsqlEndpoint.recordSession purges the rows of ended sessions from sys.session_identity before recording the new one. At the cluster database's repeatable read, two logins purging the same ended session failed one another with "could not serialize access due to concurrent delete", and the losing login was refused as access denied. The recording connection now runs at read committed, where the second purge passes over the row the first deleted; the record stays one INSERT ... ON CONFLICT keyed by the backend pid, and client sessions keep repeatable read. DsqlSessionRecordIntegrationTest reproduces it against a Docker-backed cluster.