[infinispan-issues] [JBoss JIRA] (ISPN-7494) Prevent Kubernetes from killing 2 nodes at the same time

Sebastian Łaskawiec (JIRA) issues at jboss.org
Mon Feb 20 05:11:00 EST 2017


Sebastian Łaskawiec created ISPN-7494:
-----------------------------------------

             Summary: Prevent Kubernetes from killing 2 nodes at the same time
                 Key: ISPN-7494
                 URL: https://issues.jboss.org/browse/ISPN-7494
             Project: Infinispan
          Issue Type: Sub-task
          Components: Cloud Integrations, Core
    Affects Versions: 9.0.0.CR1
         Environment: * OpenShift {{v1.5.0-alpha.2+e4b43ee}}
* Infinispan Server 9.0.0.Beta2
            Reporter: Sebastian Łaskawiec


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-ds1ks] *** JBossAS process (81) received TERM signal ***
[transactions-repository-1-ds1ks] 09:50:49,010 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested via an OS signal
[transactions-repository-1-ds1ks] 09:50:49,060 WARN  [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000004: Failure during stop of service jboss.datagrid-infinispan.clustered.transactional.config: java.lang.IllegalStateException: ISPN000371: Cannot remove cache configuration 'transactional' because it is in use
[transactions-repository-1-ds1ks] at org.infinispan.manager.DefaultCacheManager.undefineConfiguration(DefaultCacheManager.java:391)
[transactions-repository-1-ds1ks] at org.infinispan.manager.impl.AbstractDelegatingEmbeddedCacheManager.undefineConfiguration(AbstractDelegatingEmbeddedCacheManager.java:49)
[transactions-repository-1-ds1ks] at org.infinispan.server.infinispan.SecurityActions$4.run(SecurityActions.java:120)
[transactions-repository-1-ds1ks] at org.infinispan.server.infinispan.SecurityActions$4.run(SecurityActions.java:117)
[transactions-repository-1-ds1ks] at org.infinispan.security.Security.doPrivileged(Security.java:76)
[transactions-repository-1-ds1ks] at org.infinispan.server.infinispan.SecurityActions.doPrivileged(SecurityActions.java:64)
[transactions-repository-1-ds1ks] at org.infinispan.server.infinispan.SecurityActions.undefineContainerConfiguration(SecurityActions.java:124)
[transactions-repository-1-ds1ks] at org.jboss.as.clustering.infinispan.subsystem.AbstractCacheConfigurationService.stop(AbstractCacheConfigurationService.java:89)
[transactions-repository-1-ds1ks] at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:2056)
[transactions-repository-1-ds1ks] at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:2017)
[transactions-repository-1-ds1ks] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[transactions-repository-1-ds1ks] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[transactions-repository-1-ds1ks] at java.lang.Thread.run(Thread.java:745)
{noformat}

Full logs from Rolling Update process might be found here: https://gist.github.com/slaskawi/2308b4c5e9bbf523fb3e02a7cc45fa24

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`
* Start Spring Session Demo `cd session-demo && mvn fabric8:run`
* Create a client which inserts data (`watch -n 0.5 curl http://<spring-session-demo-pod-ip>/sessions`) and at the same time invoke the rolling update: `oc deploy transactions-repository --latest -n myproject`
* Observe logs `kubetail -l environment=infrastructure`



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the infinispan-issues mailing list