[infinispan-issues] [JBoss JIRA] (ISPN-7160) RemoteSpringSessionTest random failures
Dan Berindei (JIRA)
issues at jboss.org
Wed Nov 2 04:22:00 EDT 2016
Dan Berindei created ISPN-7160:
----------------------------------
Summary: RemoteSpringSessionTest random failures
Key: ISPN-7160
URL: https://issues.jboss.org/browse/ISPN-7160
Project: Infinispan
Issue Type: Bug
Components: Spring Integration
Reporter: Dan Berindei
Assignee: Sebastian Łaskawiec
Priority: Critical
Fix For: 9.0.0.Beta1
{{RemoteSpringSessionTest}} and {{EmbeddedSpringSessionTest}} use the default cache jmx configuration, so they try to register the same JMX object names. If they run in parallel, one of them will fail to start the cache manager:
{noformat}
org.infinispan.jmx.JmxDomainConflictException: ISPN000034: There's already a JMX MBean instance type=CacheManager,name="DefaultCacheManager" already registered under 'org.infinispan' JMX domain. If you want to allow multiple instances configured with same JMX domain enable 'allowDuplicateDomains' attribute in 'globalJmxStatistics' config element
at org.infinispan.jmx.JmxUtil.buildJmxDomain(JmxUtil.java:53)
at org.infinispan.jmx.CacheManagerJmxRegistration.updateDomain(CacheManagerJmxRegistration.java:79)
at org.infinispan.jmx.CacheManagerJmxRegistration.buildRegistrar(CacheManagerJmxRegistration.java:73)
at org.infinispan.jmx.AbstractJmxRegistration.registerMBeans(AbstractJmxRegistration.java:37)
at org.infinispan.jmx.CacheManagerJmxRegistration.start(CacheManagerJmxRegistration.java:41)
at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:661)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:235)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:147)
at org.infinispan.integrationtests.spring.boot.session.remote.RemoteSpringSessionTest.beforeclass(RemoteSpringSessionTest.java:29)
{noformat}
If the cache manager was not created, teardown also fails with a NPE:
{noformat}
java.lang.NullPointerException
at org.infinispan.integrationtests.spring.boot.session.remote.RemoteSpringSessionTest.afterClass(RemoteSpringSessionTest.java:41)
{noformat}
The test should use the {{TestCacheManagerFactory}} methods to create the cache manager, which will set a unique JMX domain name for each instance.
--
This message was sent by Atlassian JIRA
(v7.2.2#72004)
More information about the infinispan-issues
mailing list