]
Ryan Emerson resolved ISPN-7488.
--------------------------------
Fix Version/s: 9.0.0.Final
Resolution: Done
Node tries to register component after stopping
-----------------------------------------------
Key: ISPN-7488
URL:
https://issues.jboss.org/browse/ISPN-7488
Project: Infinispan
Issue Type: Bug
Components: Cloud Integrations, Core, Server
Affects Versions: 9.0.0.Beta2
Environment: * OpenShift {{v1.5.0-alpha.2+e4b43ee}}
* Custom Infinispan Server build (based on [these
instructions|https://github.com/slaskawi/infinispan-1/tree/custom_image]). SHA1
{{2b0731b21649a88a75ed71d21b9cc06ba365e947}}
Reporter: Sebastian Łaskawiec
Assignee: Sebastian Łaskawiec
Priority: Blocker
Fix For: 9.0.0.Final
When I was performing [Spring Session and Kubernetes Rolling Update
demo|https://bluejeans.com/s/pYKUg/] I encountered a couple of problems.
One of the is this:
{noformat}
[transactions-repository-1-4z05w] 18:09:06,122 WARN
[org.infinispan.remoting.inboundhandler.GlobalInboundInvocationHandler]
(remote-thread--p2-t5) ISPN000071: Caught exception when handling command
CacheTopologyControlCommand{cache=___script_cache, type=REBALANCE_CONFIRM,
sender=transactions-repository-1-1f8dx, joinInfo=null, topologyId=9, rebalanceId=0,
currentCH=null, pendingCH=null, availabilityMode=null, actualMembers=null, throwable=null,
viewId=4}: org.infinispan.commons.CacheConfigurationException: Unable to configure
component (type: class org.infinispan.topology.CacheTopologyControlCommand, instance
CacheTopologyControlCommand{cache=___script_cache, type=REBALANCE_CONFIRM,
sender=transactions-repository-1-1f8dx, joinInfo=null, topologyId=9, rebalanceId=0,
currentCH=null, pendingCH=null, availabilityMode=null, actualMembers=null, throwable=null,
viewId=4})
[transactions-repository-1-4z05w] at
org.infinispan.factories.AbstractComponentRegistry.wireDependencies(AbstractComponentRegistry.java:152)
[transactions-repository-1-4z05w] at
org.infinispan.remoting.inboundhandler.GlobalInboundInvocationHandler$2.run(GlobalInboundInvocationHandler.java:160)
[transactions-repository-1-4z05w] at
org.infinispan.util.concurrent.BlockingTaskAwareExecutorServiceImpl$RunnableWrapper.run(BlockingTaskAwareExecutorServiceImpl.java:203)
[transactions-repository-1-4z05w] at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[transactions-repository-1-4z05w] at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[transactions-repository-1-4z05w] at java.lang.Thread.run(Thread.java:745)
[transactions-repository-1-4z05w] Caused by:
org.infinispan.IllegalLifecycleStateException: Trying to register a component after
stopping: org.infinispan.topology.LocalTopologyManagerFactory
[transactions-repository-1-4z05w] at
org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:185)
[transactions-repository-1-4z05w] at
org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:172)
[transactions-repository-1-4z05w] at
org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:168)
[transactions-repository-1-4z05w] at
org.infinispan.factories.AbstractComponentRegistry.createComponentFactoryInternal(AbstractComponentRegistry.java:349)
[transactions-repository-1-4z05w] at
org.infinispan.factories.AbstractComponentRegistry.getFactory(AbstractComponentRegistry.java:328)
[transactions-repository-1-4z05w] at
org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:294)
[transactions-repository-1-4z05w] at
org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:247)
[transactions-repository-1-4z05w] at
org.infinispan.factories.AbstractComponentRegistry.wireDependencies(AbstractComponentRegistry.java:148)
[transactions-repository-1-4z05w] ... 5 more
{noformat}
Full logs from Rolling Update process might be found here:
https://gist.github.com/slaskawi/530241bb695f1f490bcb25eabaf9d676
Steps to reproduce:
* Start local OpenShift Cluster
* invoke `./init_infrastructure.sh` from
https://github.com/slaskawi/presentations/tree/ISPN-7487-reproducer
* invoke `cd transaction-creator && mvn fabric8:run`
* Do the rolling update: `oc deploy transactions-repository --latest -n myproject`
* Observe logs `kubetail -l environment=infrastructure`