[
https://issues.jboss.org/browse/ISPN-8140?page=com.atlassian.jira.plugin....
]
Martin Gencur commented on ISPN-8140:
-------------------------------------
I've also tried with concurrency-level 2 and 64
Getting IndexOutOfBoundsException when retrieving WeakCounter
-------------------------------------------------------------
Key: ISPN-8140
URL:
https://issues.jboss.org/browse/ISPN-8140
Project: Infinispan
Issue Type: Bug
Components: Clustered Counter
Affects Versions: 9.1.0.Final
Reporter: Martin Gencur
Assignee: Pedro Ruivo
Calling getWeakCounter on EmbeddedCounterManager leads to the following exception:
{code}
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.infinispan.counter.impl.weak.WeakCounterImpl.registerListener(WeakCounterImpl.java:228)
~[infinispan-clustered-counter-9.1.0.Final.jar:9.1.0.Final]
at
org.infinispan.counter.impl.weak.WeakCounterImpl.init(WeakCounterImpl.java:105)
~[infinispan-clustered-counter-9.1.0.Final.jar:9.1.0.Final]
at
org.infinispan.counter.impl.manager.EmbeddedCounterManager.createWeakCounter(EmbeddedCounterManager.java:66)
~[infinispan-clustered-counter-9.1.0.Final.jar:9.1.0.Final]
at
org.infinispan.counter.impl.manager.EmbeddedCounterManager.createCounter(EmbeddedCounterManager.java:129)
~[infinispan-clustered-counter-9.1.0.Final.jar:9.1.0.Final]
at
org.infinispan.counter.impl.manager.EmbeddedCounterManager$$Lambda$320/1622399598.apply(Unknown
Source) ~[?:?]
at
java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
~[?:1.8.0_40]
at
org.infinispan.counter.impl.manager.EmbeddedCounterManager.getWeakCounter(EmbeddedCounterManager.java:94)
~[infinispan-clustered-counter-9.1.0.Final.jar:9.1.0.Final]
at
org.radargun.service.Infinispan91WeakCounterOperations.getWeakCounter(Infinispan91WeakCounterOperations.java:22)
~[plugin-infinispan91-3.0.0-SNAPSHOT.jar:?]
at
org.radargun.stages.WeakCounterTestStage$WeakCounterLogic.init(WeakCounterTestStage.java:59)
~[radargun-counter-3.0.0-SNAPSHOT.jar:?]
at org.radargun.stages.test.Stressor.run(Stressor.java:65)
[radargun-core-3.0.0-SNAPSHOT.jar:?]
{code}
The counter has this configuration:
{code}
<counters xmlns="urn:infinispan:config:counters:9.0"
num-owners="2" reliability="CONSISTENT">
<weak-counter name="c5" initial-value="5"
storage="VOLATILE" concurrency-level="1"/>
</counters>
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)