]
Pedro Ruivo updated ISPN-12667:
-------------------------------
Resolution: Done
Status: Resolved (was: Pull Request Sent)
GlobalState incompatibility between 11.x and 12.x
-------------------------------------------------
Key: ISPN-12667
URL:
https://issues.redhat.com/browse/ISPN-12667
Project: Infinispan
Issue Type: Bug
Components: State Transfer
Affects Versions: 12.0.0.Final
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Priority: Major
Fix For: 12.1.0.Final, 12.0.1.Final
ISPN-12221 added two additional properties to the GlobalState, however when loading these
values it does not take into account that the properties may not exist. This results in
the following exception in the operator when upgrading a cluster from 11.x to 12.x
{code:java}
09:57:37,933 FATAL (main) [org.infinispan.SERVER] ISPN080028: Infinispan Server failed to
start java.util.concurrent.ExecutionException:
org.infinispan.manager.EmbeddedCacheManagerStartupException:
org.infinispan.commons.CacheConfigurationException: Error starting component
org.infinispan.statetransfer.StateTransferManager
at
java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)
at org.infinispan.server.Bootstrap.runInternal(Bootstrap.java:158)
at org.infinispan.server.tool.Main.run(Main.java:98)
at org.infinispan.server.Bootstrap.main(Bootstrap.java:46)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.infinispan.server.loader.Loader.run(Loader.java:103)
at org.infinispan.server.loader.Loader.main(Loader.java:48)
Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException:
org.infinispan.commons.CacheConfigurationException: Error starting component
org.infinispan.statetransfer.StateTransferManager
at
org.infinispan.manager.DefaultCacheManager.internalStart(DefaultCacheManager.java:751)
at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:717)
at
org.infinispan.server.SecurityActions.lambda$startCacheManager$1(SecurityActions.java:67)
at org.infinispan.security.Security.doPrivileged(Security.java:45)
at org.infinispan.server.SecurityActions.doPrivileged(SecurityActions.java:39)
at org.infinispan.server.SecurityActions.startCacheManager(SecurityActions.java:70)
at org.infinispan.server.Server.run(Server.java:347)
... 9 more
Caused by: org.infinispan.commons.CacheConfigurationException: Error starting component
org.infinispan.statetransfer.StateTransferManager
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:572)
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.access$700(BasicComponentRegistryImpl.java:30)
at
org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:787)
at
org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:341)
at
org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:237)
at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:213)
at org.infinispan.cache.impl.CacheImpl.start(CacheImpl.java:1014)
at
org.infinispan.cache.impl.AbstractDelegatingCache.start(AbstractDelegatingCache.java:512)
at
org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:697)
at
org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:643)
at
org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:532)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:510)
at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:26)
at org.infinispan.security.actions.GetCacheAction.run(GetCacheAction.java:14)
at org.infinispan.security.Security.doPrivileged(Security.java:50)
at
org.infinispan.globalstate.impl.SecurityActions.doPrivileged(SecurityActions.java:29)
at org.infinispan.globalstate.impl.SecurityActions.getCache(SecurityActions.java:38)
at
org.infinispan.globalstate.impl.GlobalConfigurationManagerImpl.start(GlobalConfigurationManagerImpl.java:94)
at org.infinispan.globalstate.impl.CorePackageImpl$2.start(CorePackageImpl.java:59)
at org.infinispan.globalstate.impl.CorePackageImpl$2.start(CorePackageImpl.java:48)
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeStart(BasicComponentRegistryImpl.java:604)
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:595)
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:564)
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.access$700(BasicComponentRegistryImpl.java:30)
at
org.infinispan.factories.impl.BasicComponentRegistryImpl$ComponentWrapper.running(BasicComponentRegistryImpl.java:787)
at
org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:341)
at
org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:237)
at
org.infinispan.manager.DefaultCacheManager.internalStart(DefaultCacheManager.java:746)
... 15 more
Caused by: java.util.concurrent.CompletionException: java.lang.NumberFormatException:
null
at org.infinispan.util.concurrent.CompletionStages.join(CompletionStages.java:81)
at
org.infinispan.statetransfer.StateTransferManagerImpl.start(StateTransferManagerImpl.java:134)
at org.infinispan.statetransfer.CorePackageImpl$2.start(CorePackageImpl.java:104)
at org.infinispan.statetransfer.CorePackageImpl$2.start(CorePackageImpl.java:83)
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeStart(BasicComponentRegistryImpl.java:604)
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.doStartWrapper(BasicComponentRegistryImpl.java:595)
at
org.infinispan.factories.impl.BasicComponentRegistryImpl.startWrapper(BasicComponentRegistryImpl.java:564)
... 42 more
Caused by: java.lang.NumberFormatException: null
at java.base/java.lang.Integer.parseInt(Integer.java:614)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at
org.infinispan.distribution.ch.impl.ReplicatedConsistentHash.parseMembers(ReplicatedConsistentHash.java:128)
at
org.infinispan.distribution.ch.impl.ReplicatedConsistentHash.<init>(ReplicatedConsistentHash.java:112)
at
org.infinispan.distribution.ch.impl.SyncReplicatedConsistentHashFactory.fromPersistentState(SyncReplicatedConsistentHashFactory.java:43)
at
org.infinispan.distribution.ch.impl.SyncReplicatedConsistentHashFactory.fromPersistentState(SyncReplicatedConsistentHashFactory.java:26)
at
org.infinispan.topology.ClusterCacheStatus.restoreCacheTopology(ClusterCacheStatus.java:731)
at org.infinispan.topology.ClusterCacheStatus.doJoin(ClusterCacheStatus.java:693)
at
org.infinispan.topology.ClusterTopologyManagerImpl.lambda$handleJoin$3(ClusterTopologyManagerImpl.java:231)
at
java.base/java.util.concurrent.CompletableFuture.uniApplyNow(CompletableFuture.java:680)
at
java.base/java.util.concurrent.CompletableFuture.uniApplyStage(CompletableFuture.java:658)
at
java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:2094)
at
java.base/java.util.concurrent.CompletableFuture.thenApply(CompletableFuture.java:143)
at
org.infinispan.topology.ClusterTopologyManagerImpl.handleJoin(ClusterTopologyManagerImpl.java:224)
at
org.infinispan.commands.topology.CacheJoinCommand.invokeAsync(CacheJoinCommand.java:42)
at
org.infinispan.topology.TopologyManagementHelper.invokeAsync(TopologyManagementHelper.java:151)
at
org.infinispan.topology.TopologyManagementHelper.executeOnCoordinator(TopologyManagementHelper.java:88)
at
org.infinispan.topology.LocalTopologyManagerImpl.sendJoinRequest(LocalTopologyManagerImpl.java:167)
at
org.infinispan.topology.LocalTopologyManagerImpl.lambda$sendJoinRequest$2(LocalTopologyManagerImpl.java:207)
at
org.infinispan.util.concurrent.CompletionStages.lambda$schedule$2(CompletionStages.java:162)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
{code}