Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/documentation/upgrading/topics/changes/changes-27_0_0.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,16 @@ keytool -importcert -alias <server-alias> -file server.crt \

Deployments using CA-signed certificates or a truststore that already contains the server certificate are not affected.

=== Hibernate second-level cache disabled
// https://github.com/keycloak/keycloak/issues/55297

{project_name} no longer enables the Hibernate second-level cache and query cache, which Quarkus enables by default.
{project_name} does not use either cache, as it caches data in Infinispan.
With the caches enabled, Hibernate's `SimpleTimestamper` kept every thread that opened a database session at 100% CPU after the system clock was moved backwards, until the clock caught up with the previously issued timestamp.

This change has no effect on the data stored or cached by {project_name}.
If you use a custom extension that relies on Hibernate's second-level or query cache, set `quarkus.hibernate-orm.second-level-caching-enabled=true` in `conf/quarkus.properties` and run `kc.sh build`.

// ------------------------ Deprecated features ------------------------ //
== Deprecated features

Expand Down
4 changes: 4 additions & 0 deletions quarkus/runtime/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ quarkus.hibernate-orm.jdbc.statement-batch-size=32
quarkus.hibernate-orm.jdbc.statement-fetch-size=64
quarkus.hibernate-orm.fetch.batch-size=8
quarkus.hibernate-orm.query.in-clause-parameter-padding=true
# Keycloak doesn't use Hibernate's second-level or query cache; this selects NoCachingRegionFactory
# and avoids Hibernate's SimpleTimestamper, which spins at 100% CPU when the system clock moves backwards
# https://hibernate.atlassian.net/browse/HHH-13664
quarkus.hibernate-orm.second-level-caching-enabled=false
quarkus.hibernate-orm.unsupported-properties."hibernate.order_inserts"=true
quarkus.hibernate-orm.unsupported-properties."hibernate.query.startup_check"=false
quarkus.hibernate-orm.unsupported-properties."hibernate.jdbc.log.errors"=false
Expand Down
Loading