8000 Does the offline client session DB fallback (PR #17490) also cover entries lost via ISPN000313 abrupt leavers? · keycloak keycloak · Discussion #54146 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

I went through the code at 19.0.3, 21.1.0 and 26.8.1. Your case is covered from 21.1.0 on, and what you see on 19.0.3 matches the cause you describe.

  1. Yes. In 21.1.0 getClientSession doesn't care why the entry is missing. If it's not in offlineClientSessions and the session is offline, it goes to persister.loadClientSession(...) (L388-L406). The DB lookup is by user session id + client id + offline flag (JpaUserSessionPersisterProvider L386-L408), not by the cached UUID. That UUID is only a cache key, OFFLINE_CLIENT_SESSION doesn't store it, and after the reload the new one is written back into the user session (L1044-L1061). So lost by ISPN000313 or evicted by a limit is the same path.

  2. …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@danielSoluix
Comment options

Answer selected by danielSoluix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0