[infinispan-issues] [JBoss JIRA] (ISPN-8639) Merge policy tests random failures with ArrayIndexOutOfBoundsException
Dan Berindei (JIRA)
issues at jboss.org
Tue Dec 19 06:13:00 EST 2017
[ https://issues.jboss.org/browse/ISPN-8639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei updated ISPN-8639:
-------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/5650
> 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}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list