JPA Map Storage: Login fails when auth sessions are configured with CockroachDB #11617
Labels
area/storage
Indicates an issue that touches storage (change in data layout or data manipulation)
kind/bug
Categorizes a PR related to a bug
Milestone
Describe the bug
When auth sessions are configured to use the JPA Map Storage and CockroachDB is the database, the login process fails with
The
kc_auth_session
andkc_auth_root_session
tables are created and once you navigate to the login screen there's data that is added to the tables. WhenSign In
is clicked the exception above is shown and the data is not cleared as it happens on PostgreSQL.Version
18.0.0
Expected behavior
Login should succeed
Actual behavior
Login fails with the
RETRY_TOO_OLD
error message.How to Reproduce?
Enable the JPA map storage for auth sessions, and in the
jpa-map-storage
add a configuration that connects to a CockroachDB. Then either run any test that performs a login (e.g.AccountBrokerTest
), or runKeycloakServer
, go to the admin console and try to login.Anything else?
No response
The text was updated successfully, but these errors were encountered: