+
Skip to content

max-count for session caches is not set by default for local Infinispan config #36117

@mhajas

Description

@mhajas

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

dist/quarkus

Describe the bug

When persistent sessions are enabled Keycloak prints warning on startup when max-count for session caches is not set. In default setting this warnings should not be printed. Therefore, we need to have max-count set for these caches to some value. This is already set in cache=ispn, however, it is not set in https://github.com/keycloak/keycloak/blob/main/quarkus/runtime/src/main/resources/cache-local.xml#L42 so the warnings are printed:

2024-12-23 12:49:54,943 INFO  [org.keycloak.quarkus.runtime.storage.infinispan.CacheManagerFactory] (ForkJoinPool.commonPool-worker-1) Persistent user sessions enabled and no memory limit found in configuration. Setting max entries for sessions to 10000 entries.
2024-12-23 12:49:54,943 INFO  [org.keycloak.quarkus.runtime.storage.infinispan.CacheManagerFactory] (ForkJoinPool.commonPool-worker-1) Persistent user sessions enabled and no memory limit found in configuration. Setting max entries for clientSessions to 10000 entries.
2024-12-23 12:49:54,943 INFO  [org.keycloak.quarkus.runtime.storage.infinispan.CacheManagerFactory] (ForkJoinPool.commonPool-worker-1) Persistent user sessions enabled and no memory limit found in configuration. Setting max entries for offlineSessions to 10000 entries.
2024-12-23 12:49:54,943 INFO  [org.keycloak.quarkus.runtime.storage.infinispan.CacheManagerFactory] (ForkJoinPool.commonPool-worker-1) Persistent user sessions enabled and no memory limit found in configuration. Setting max entries for offlineClientSessions to 10000 entries.

Version

main

Regression

  • The issue is a regression

Expected behavior

no warnings printed

Actual behavior

Warnings printed

How to Reproduce?

start keycloak with kc.sh start-dev

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载