Upgrade to Infinispan 14.0.4.Final
This commit is contained in:
parent
22e7214565
commit
5aae3842c4
4 changed files with 22 additions and 9 deletions
|
@ -258,9 +258,15 @@ public class InfinispanNotificationsManager {
|
|||
|
||||
});
|
||||
} catch (RejectedExecutionException ree) {
|
||||
// avoid touching the cache when creating a log message to avoid a deadlock in Infinispan 12.1.7.Final
|
||||
logger.errorf("Rejected submitting of the event for key: %s. Server going to shutdown or pool exhausted. Pool: %s", key, listenersExecutor.toString());
|
||||
throw ree;
|
||||
// server is shutting down or pool was terminated - don't throw errors
|
||||
if (ree.getMessage() != null && (ree.getMessage().contains("Terminated") || ree.getMessage().contains("Shutting down"))) {
|
||||
logger.warnf("Rejected submitting of the event for key: %s because server is shutting down or pool was terminated.", key);
|
||||
logger.debug(ree);
|
||||
} else {
|
||||
// avoid touching the cache when creating a log message to avoid a deadlock in Infinispan 12.1.7.Final
|
||||
logger.errorf("Rejected submitting of the event for key: %s. Server going to shutdown or pool exhausted. Pool: %s", key, listenersExecutor.toString());
|
||||
throw ree;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -393,7 +393,7 @@ public class DefaultInfinispanConnectionProviderFactory implements InfinispanCon
|
|||
|
||||
// Used for cross-data centers scenario. Usually integration with external JDG server, which itself handles communication between DCs.
|
||||
private void configureRemoteCacheStore(ConfigurationBuilder builder, boolean async, String cacheName) {
|
||||
String jdgServer = config.get("remoteStoreHost", "localhost");
|
||||
String jdgServer = config.get("remoteStoreHost", "127.0.0.1");
|
||||
Integer jdgPort = config.getInt("remoteStorePort", 11222);
|
||||
|
||||
// After upgrade to Infinispan 12.1.7.Final it's required that both remote store and embedded cache use
|
||||
|
@ -422,7 +422,7 @@ public class DefaultInfinispanConnectionProviderFactory implements InfinispanCon
|
|||
}
|
||||
|
||||
private void configureRemoteActionTokenCacheStore(ConfigurationBuilder builder, boolean async) {
|
||||
String jdgServer = config.get("remoteStoreHost", "localhost");
|
||||
String jdgServer = config.get("remoteStoreHost", "127.0.0.1");
|
||||
Integer jdgPort = config.getInt("remoteStorePort", 11222);
|
||||
|
||||
// After upgrade to Infinispan 12.1.7.Final it's required that both remote store and embedded cache use
|
||||
|
|
|
@ -127,8 +127,15 @@ public class ClientListenerExecutorDecorator<K> {
|
|||
} catch (RejectedExecutionException ree) {
|
||||
eventsInProgress.remove(key);
|
||||
|
||||
logger.errorf("Rejected execution of task for the event '%s' . Try to increase the pool size. Pool is '%s'", event.toString(), decorated.toString());
|
||||
throw ree;
|
||||
// server is shutting down or pool was terminated - don't throw errors
|
||||
if (ree.getMessage() != null && (ree.getMessage().contains("Terminated") || ree.getMessage().contains("Shutting down"))) {
|
||||
logger.warnf("Rejected execution of task for the event '%s' because server is shutting down or pool was terminated.", event.toString());
|
||||
logger.debug(ree);
|
||||
} else {
|
||||
// avoid touching the cache when creating a log message to avoid a deadlock in Infinispan 12.1.7.Final
|
||||
logger.errorf("Rejected execution of task for the event '%s' . Try to increase the pool size. Pool is '%s'", event.toString(), decorated.toString());
|
||||
throw ree;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -81,8 +81,8 @@
|
|||
<jakarta.persistence.version>2.2.3</jakarta.persistence.version>
|
||||
<hibernate-orm.version>5.6.14.Final</hibernate-orm.version>
|
||||
<hibernate.c3p0.version>${hibernate-orm.version}</hibernate.c3p0.version>
|
||||
<infinispan.version>14.0.2.Final</infinispan.version>
|
||||
<infinispan.protostream.processor.version>4.5.0.Final</infinispan.protostream.processor.version>
|
||||
<infinispan.version>14.0.4.Final</infinispan.version>
|
||||
<infinispan.protostream.processor.version>4.6.0.Final</infinispan.protostream.processor.version>
|
||||
<jackson.version>2.13.4</jackson.version>
|
||||
<jackson.databind.version>2.13.4.2</jackson.databind.version>
|
||||
<jackson.annotations.version>${jackson.version}</jackson.annotations.version>
|
||||
|
|
Loading…
Reference in a new issue