Repository navigation
Session expires immediatly with remote infinispan cluster and JDBC persistence #10577
Replies: 2 comments 6 replies
|
Hi, litlle up, in case someone has ever tried ISPN JDBC persistence ... thanks |
|
@daviddelannoy thansk for the useful reproducer! I also tested this with a custom docker-image from the latest main branch (18.0.0-SNAPSHOT) and there I see the same problem. I think the problem is here: https://github.com/keycloak/keycloak/blob/main/model/infinispan/src/main/java/org/keycloak/models/sessions/infinispan/remotestore/RemoteCacheInvoker.java#L132 case REPLACE:
replace(topology, remoteCache, task.getLifespanMs(), maxIdleMs, key, task);
break;
I just gave this a spin - the following PoC (Patch included) works for me: I don't know yet whether this would be a proper fix but other folks like @mposolda know the infinispan internals better :) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
We are facing a strange bug with a remote Infinispan cluster with JDBC persistence and Keycloak (wildfly based).
I agree that it is quite an unusual set-up but we have to make it work...
Keycloak 17.0.0 (legacy, wildfly) (will be migrated to Quarkus in a few months)
Infinispan 13.0.6.Final
PostgreSQL 14.X
Note : this bug does not occur with a remote Infinispan cluster without JDBC persistence.
Scenario :
https://github.com/olivierboudet/keycloak-infinispan-jdbc
docker-compose up
We have looked at theses classes and put them in DEBUG but were not able to identify the root cause :
org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheSessionListener
org.keycloak.models.sessions.infinispan.remotestore.RemoteCacheInvoker
org.keycloak.models.sessions.infinispan.InfinispanUserSessionProvider
If anyone can help us on this problem ...
Is there a big mistake in our configuration ? we simplified it a bit for the example (remove security, single Keycloak/ISPN instance, ...)
thanks
All reactions