]
Dan Berindei updated ISPN-8639:
-------------------------------
Status: Open (was: New)
Merge policy tests random failures with
ArrayIndexOutOfBoundsException
----------------------------------------------------------------------
Key: ISPN-8639
URL:
https://issues.jboss.org/browse/ISPN-8639
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Core
Affects Versions: 9.2.0.Beta2
Reporter: Dan Berindei
Assignee: Dan Berindei
Labels: testsuite_stability
Fix For: 9.2.0.CR1
{{BaseMergePolicyTest.getCacheFromPreferredPartition()}} reads the cache status of all
the running caches, including the {{CONFIG}} cache, but assumes a 1-to-1 mapping between
the responses list and the input caches (the default cache on each node).
Depending on how the responses are ordered, it may try to return a cache that doesn't
exist in the input array:
{noformat}
10:47:41,378 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed:
org.infinispan.conflict.impl.MergePolicyRemoveAllTest.testPartitionMergePolicy[DIST_SYNC,
5N]
java.lang.ArrayIndexOutOfBoundsException: 8
at
org.infinispan.conflict.impl.BaseMergePolicyTest.getCacheFromPreferredPartition(BaseMergePolicyTest.java:190)
~[test-classes/:?]
at
org.infinispan.conflict.impl.BaseMergePolicyTest.getCacheFromPreferredPartition(BaseMergePolicyTest.java:153)
~[test-classes/:?]
at
org.infinispan.conflict.impl.BaseMergePolicyTest.testPartitionMergePolicy(BaseMergePolicyTest.java:124)
~[test-classes/:?]
{noformat}
{noformat}
16:57:12,012 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed:
org.infinispan.conflict.impl.MergePolicyCustomTest.testPartitionMergePolicy[DIST_SYNC,
4N]
java.lang.ArrayIndexOutOfBoundsException: 6
at
org.infinispan.conflict.impl.BaseMergePolicyTest.getCacheFromPreferredPartition(BaseMergePolicyTest.java:190)
~[test-classes/:?]
at
org.infinispan.conflict.impl.BaseMergePolicyTest.getCacheFromPreferredPartition(BaseMergePolicyTest.java:153)
~[test-classes/:?]
at
org.infinispan.conflict.impl.BaseMergePolicyTest.testPartitionMergePolicy(BaseMergePolicyTest.java:124)
~[test-classes/:?]
{noformat}