From fdd9122ed74043f6057c228bf1dd6e1336dc7ab2 Mon Sep 17 00:00:00 2001 From: Rishiraj Anand Date: Tue, 26 Nov 2024 00:11:53 +0530 Subject: [PATCH] Update quarkus to 3.15.2 --- build-parent/pom.xml | 32 +++++++++++++++++-- .../drools-reliability-infinispan/pom.xml | 4 +-- .../infinispan/EmbeddedStorageManager.java | 6 +++- .../drools-reliability-tests/pom.xml | 2 +- .../test/EmbeddedStorageManagerTest.java | 7 +--- 5 files changed, 38 insertions(+), 13 deletions(-) diff --git a/build-parent/pom.xml b/build-parent/pom.xml index a81e50ec933..52fc0da46bd 100644 --- a/build-parent/pom.xml +++ b/build-parent/pom.xml @@ -74,7 +74,7 @@ 0.18.0 4.7.5 1.12.2 - 3.15.1 + 3.15.2 3.10.0 8.5.11 4.13.1 @@ -99,7 +99,8 @@ 2.2 2.3.0 - 14.0.25.Final + 15.0.8.Final + 5.0.8.Final 3.26.0-GA 7.0.2.Final 3.5.3.Final @@ -749,7 +750,32 @@ ${version.org.javassist} - + + + org.infinispan + infinispan-core + ${version.org.infinispan} + + + org.infinispan + infinispan-client-hotrod + ${version.org.infinispan} + + + org.infinispan + infinispan-server-testdriver-core + ${version.org.infinispan} + + + org.infinispan.protostream + protostream + ${version.org.infinispan.protostream} + + + org.infinispan.protostream + protostream-processor + ${version.org.infinispan.protostream} + org.mockito diff --git a/drools-reliability/drools-reliability-infinispan/pom.xml b/drools-reliability/drools-reliability-infinispan/pom.xml index 73d06000077..b63c8b2e97f 100644 --- a/drools-reliability/drools-reliability-infinispan/pom.xml +++ b/drools-reliability/drools-reliability-infinispan/pom.xml @@ -52,7 +52,7 @@ org.infinispan - infinispan-core-jakarta + infinispan-core org.infinispan.protostream @@ -61,7 +61,7 @@ org.infinispan - infinispan-client-hotrod-jakarta + infinispan-client-hotrod org.drools diff --git a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/EmbeddedStorageManager.java b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/EmbeddedStorageManager.java index 65538365471..d03cf43797f 100644 --- a/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/EmbeddedStorageManager.java +++ b/drools-reliability/drools-reliability-infinispan/src/main/java/org/drools/reliability/infinispan/EmbeddedStorageManager.java @@ -33,6 +33,7 @@ import org.infinispan.configuration.global.GlobalConfigurationBuilder; import org.infinispan.globalstate.ConfigurationStorage; import org.infinispan.manager.DefaultCacheManager; +import org.infinispan.manager.EmbeddedCacheManagerAdmin; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -52,6 +53,8 @@ public class EmbeddedStorageManager implements InfinispanStorageManager { static final EmbeddedStorageManager INSTANCE = new EmbeddedStorageManager(); private DefaultCacheManager embeddedCacheManager; + + private EmbeddedCacheManagerAdmin cacheContainerAdmin; private Configuration cacheConfiguration; public static final String CACHE_DIR = "cache"; @@ -76,6 +79,7 @@ public void initStorageManager() { // Initialize the default Cache Manager. embeddedCacheManager = new DefaultCacheManager(global.build()); + cacheContainerAdmin = embeddedCacheManager.administration(); // Create a distributed cache with synchronous replication. ConfigurationBuilder builder = new ConfigurationBuilder(); @@ -113,7 +117,7 @@ public void close() { @Override public void removeStorage(String storageName) { if (embeddedCacheManager.cacheExists(storageName)) { - embeddedCacheManager.removeCache(storageName); + cacheContainerAdmin.removeCache(storageName); } } diff --git a/drools-reliability/drools-reliability-tests/pom.xml b/drools-reliability/drools-reliability-tests/pom.xml index 907f780f237..c441f6d4e09 100644 --- a/drools-reliability/drools-reliability-tests/pom.xml +++ b/drools-reliability/drools-reliability-tests/pom.xml @@ -123,7 +123,7 @@ org.infinispan - infinispan-server-testdriver-core-jakarta + infinispan-server-testdriver-core test diff --git a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/EmbeddedStorageManagerTest.java b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/EmbeddedStorageManagerTest.java index d00568737ea..5e8f5b52d92 100644 --- a/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/EmbeddedStorageManagerTest.java +++ b/drools-reliability/drools-reliability-tests/src/test/java/org/drools/reliability/test/EmbeddedStorageManagerTest.java @@ -83,7 +83,7 @@ void removeCachesBySessionId_shouldRemoveSpecifiedCacheOnly() { assertThat(StorageManagerFactory.get().getStorageManager().getStorageNames()).containsExactlyInAnyOrder(SESSION_STORAGE_PREFIX + "0_" + "epDefault", "METADATA_0"); } - public static class FakeCacheManager extends DefaultCacheManager { + public static class FakeCacheManager extends DefaultCacheManager{ private Map cacheMap = new ConcurrentHashMap<>(); @@ -103,11 +103,6 @@ public boolean cacheExists(String cacheName) { return cacheMap.containsKey(cacheName); } - @Override - public void removeCache(String cacheName) { - cacheMap.remove(cacheName); - } - @Override public void stop() { // do nothing