From 340973b9cf5ccec020e8e3e3abe4b393798d4e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Barto=C5=A1?= Date: Fri, 24 Sep 2021 10:18:42 +0200 Subject: [PATCH] KEYCLOAK-19333 Cannot override modules for Infinispan subsystem in distribution --- .../main/resources/content/bin/migrate-standalone-ha.cli | 9 +++++++++ .../feature_groups/domain-keycloak-clustered.xml | 3 ++- .../feature_groups/infinispan-dist-hibernate.xml | 6 ++++++ distribution/server-dist/pom.xml | 1 + 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone-ha.cli b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone-ha.cli index c415c5bd05..03225ba072 100644 --- a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone-ha.cli +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/content/bin/migrate-standalone-ha.cli @@ -932,4 +932,13 @@ if (result == undefined) of /subsystem=infinispan/cache-container=keycloak/distr echo end-if +# Migrate from 15.0.0 to 16.0.0 + +if (outcome == failed) of /subsystem=infinispan/cache-container=hibernate/local-cache=pending-puts/:read-resource + echo Add pending-puts local cache clustered and expiration time 60000L + /subsystem=infinispan/cache-container=hibernate/local-cache=pending-puts/:add + /subsystem=infinispan/cache-container=hibernate/local-cache=pending-puts/component=expiration/:write-attribute(name=max-idle,value=60000L) + echo +end-if + echo *** End Migration *** diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-clustered.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-clustered.xml index db5dbea1f3..123a28536a 100644 --- a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-clustered.xml +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/domain-keycloak-clustered.xml @@ -30,12 +30,13 @@ + - + diff --git a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-hibernate.xml b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-hibernate.xml index 72c5179797..7393106cda 100644 --- a/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-hibernate.xml +++ b/distribution/galleon-feature-packs/server-galleon-pack/src/main/resources/feature_groups/infinispan-dist-hibernate.xml @@ -33,6 +33,12 @@ + + + + + + diff --git a/distribution/server-dist/pom.xml b/distribution/server-dist/pom.xml index 3b18008405..c1076d9508 100644 --- a/distribution/server-dist/pom.xml +++ b/distribution/server-dist/pom.xml @@ -333,6 +333,7 @@ + ${product.name}-${product.filename.version} org.apache.maven.plugins