Skip to content

Commit

Permalink
Update quarkus to 3.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RishiRajAnand committed Nov 28, 2024
1 parent 0063a09 commit fdd9122
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 13 deletions.
32 changes: 29 additions & 3 deletions build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<version.guru.nidi>0.18.0</version.guru.nidi>
<version.info.picocli>4.7.5</version.info.picocli>
<version.io.micrometer>1.12.2</version.io.micrometer>
<version.io.quarkus>3.15.1</version.io.quarkus>
<version.io.quarkus>3.15.2</version.io.quarkus>
<version.io.smallrye.openapi.core>3.10.0</version.io.smallrye.openapi.core>
<version.it.unimi.dsi.fastutil>8.5.11</version.it.unimi.dsi.fastutil>
<version.junit>4.13.1</version.junit>
Expand All @@ -99,7 +99,8 @@
<!--This needs to be in sync with JUnit-->
<version.org.hamcrest>2.2</version.org.hamcrest>
<version.org.hsqldb>2.3.0</version.org.hsqldb>
<version.org.infinispan>14.0.25.Final</version.org.infinispan>
<version.org.infinispan>15.0.8.Final</version.org.infinispan>
<version.org.infinispan.protostream>5.0.8.Final</version.org.infinispan.protostream>
<version.org.javassist>3.26.0-GA</version.org.javassist>
<version.org.jboss.narayana.tomcat>7.0.2.Final</version.org.jboss.narayana.tomcat>
<version.org.jboss.logging>3.5.3.Final</version.org.jboss.logging>
Expand Down Expand Up @@ -749,7 +750,32 @@
<version>${version.org.javassist}</version>
</dependency>


<!-- infinispan -->
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core</artifactId>
<version>${version.org.infinispan}</version>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-client-hotrod</artifactId>
<version>${version.org.infinispan}</version>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-server-testdriver-core</artifactId>
<version>${version.org.infinispan}</version>
</dependency>
<dependency>
<groupId>org.infinispan.protostream</groupId>
<artifactId>protostream</artifactId>
<version>${version.org.infinispan.protostream}</version>
</dependency>
<dependency>
<groupId>org.infinispan.protostream</groupId>
<artifactId>protostream-processor</artifactId>
<version>${version.org.infinispan.protostream}</version>
</dependency>
<!-- Do not add mockito-all as it is uberjar! -->
<dependency>
<groupId>org.mockito</groupId>
Expand Down
4 changes: 2 additions & 2 deletions drools-reliability/drools-reliability-infinispan/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<dependencies>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core-jakarta</artifactId>
<artifactId>infinispan-core</artifactId>
</dependency>
<dependency>
<groupId>org.infinispan.protostream</groupId>
Expand All @@ -61,7 +61,7 @@
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-client-hotrod-jakarta</artifactId>
<artifactId>infinispan-client-hotrod</artifactId>
</dependency>
<dependency>
<groupId>org.drools</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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";
Expand All @@ -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();
Expand Down Expand Up @@ -113,7 +117,7 @@ public void close() {
@Override
public void removeStorage(String storageName) {
if (embeddedCacheManager.cacheExists(storageName)) {
embeddedCacheManager.removeCache(storageName);
cacheContainerAdmin.removeCache(storageName);
}
}

Expand Down
2 changes: 1 addition & 1 deletion drools-reliability/drools-reliability-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@

<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-server-testdriver-core-jakarta</artifactId>
<artifactId>infinispan-server-testdriver-core</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> cacheMap = new ConcurrentHashMap<>();

Expand All @@ -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
Expand Down

0 comments on commit fdd9122

Please sign in to comment.