From 1787a18cd9ec34e337cb8b386215e174103ccc6c Mon Sep 17 00:00:00 2001 From: Paul Ferraro Date: Fri, 27 Dec 2024 17:09:38 -0500 Subject: [PATCH] WFLY-20220 Purge global state if previous JVM was killed or crashed. --- .../subsystem/GlobalConfigurationServiceConfigurator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clustering/infinispan/extension/src/main/java/org/jboss/as/clustering/infinispan/subsystem/GlobalConfigurationServiceConfigurator.java b/clustering/infinispan/extension/src/main/java/org/jboss/as/clustering/infinispan/subsystem/GlobalConfigurationServiceConfigurator.java index f4f2617c7bf2..00442c570a0e 100644 --- a/clustering/infinispan/extension/src/main/java/org/jboss/as/clustering/infinispan/subsystem/GlobalConfigurationServiceConfigurator.java +++ b/clustering/infinispan/extension/src/main/java/org/jboss/as/clustering/infinispan/subsystem/GlobalConfigurationServiceConfigurator.java @@ -31,6 +31,7 @@ import org.infinispan.configuration.global.ShutdownHookBehavior; import org.infinispan.configuration.global.ThreadPoolConfiguration; import org.infinispan.configuration.global.TransportConfiguration; +import org.infinispan.configuration.global.UncleanShutdownAction; import org.infinispan.configuration.internal.PrivateGlobalConfigurationBuilder; import org.infinispan.globalstate.ConfigurationStorage; import org.infinispan.protostream.SerializationContext; @@ -153,6 +154,7 @@ public void registerSchema(SerializationContext context) { .configurationStorage(ConfigurationStorage.VOLATILE) .persistentLocation(path, environment.get().getServerDataDir().getPath()) .temporaryLocation(path, environment.get().getServerTempDir().getPath()) + .uncleanShutdownAction(UncleanShutdownAction.PURGE) ; return builder.build(); }