Details
-
Bug
-
Resolution: Done
-
Major
-
9.2.0.Beta2
Description
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:
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/:?]
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/:?]