[
https://issues.jboss.org/browse/ISPN-7160?page=com.atlassian.jira.plugin....
]
Dan Berindei commented on ISPN-7160:
------------------------------------
Same problem in {{InfinispanEmbeddedSessionRepositoryTest}} and
{{InfinispanRemoteSessionRepositoryTest}}:
{noformat}
00:41:03,352 ERROR (testng-InfinispanRemoteSessionRepositoryTest:[]) [TestSuiteProgress]
Test setup failed:
org.infinispan.spring.session.InfinispanRemoteSessionRepositoryTest.beforeClass
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)
~[infinispan-core.jar:9.0.0-SNAPSHOT]
at
org.infinispan.jmx.CacheManagerJmxRegistration.updateDomain(CacheManagerJmxRegistration.java:79)
~[infinispan-core.jar:9.0.0-SNAPSHOT]
at
org.infinispan.jmx.CacheManagerJmxRegistration.buildRegistrar(CacheManagerJmxRegistration.java:73)
~[infinispan-core.jar:9.0.0-SNAPSHOT]
at
org.infinispan.jmx.AbstractJmxRegistration.registerMBeans(AbstractJmxRegistration.java:37)
~[infinispan-core.jar:9.0.0-SNAPSHOT]
at
org.infinispan.jmx.CacheManagerJmxRegistration.start(CacheManagerJmxRegistration.java:41)
~[infinispan-core.jar:9.0.0-SNAPSHOT]
at org.infinispan.manager.DefaultCacheManager.start(DefaultCacheManager.java:661)
~[infinispan-core.jar:9.0.0-SNAPSHOT]
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:235)
~[infinispan-core.jar:9.0.0-SNAPSHOT]
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:167)
~[infinispan-core.jar:9.0.0-SNAPSHOT]
at
org.infinispan.spring.session.InfinispanRemoteSessionRepositoryTest.beforeClass(InfinispanRemoteSessionRepositoryTest.java:28)
~[test-classes/:?]
{noformat}
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
Labels: testsuite_stability
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.3#72005)