[infinispan-issues] [JBoss JIRA] (ISPN-7997) DistributedStreamIteratorTest.testLocallyForcedStream random failure

Dan Berindei (JIRA) issues at jboss.org
Thu Jun 29 04:14:00 EDT 2017


Dan Berindei created ISPN-7997:
----------------------------------

             Summary: DistributedStreamIteratorTest.testLocallyForcedStream random failure
                 Key: ISPN-7997
                 URL: https://issues.jboss.org/browse/ISPN-7997
             Project: Infinispan
          Issue Type: Bug
          Components: Test Suite - Core
    Affects Versions: 9.1.0.Beta1
            Reporter: Dan Berindei
            Assignee: Dan Berindei
            Priority: Critical


The test uses the {{MagicKey(primary, backup...)}} constructor with only 16 segments and with the default {{SyncConsistentHashFactory}}. Since SCHF is based on the random addresses of the nodes, the combination of owners is not always possible:

{noformat}
testLocallyForcedStream[DIST_SYNC, tx=false](org.infinispan.stream.DistributedStreamIteratorTest)  Time elapsed: 0.015 sec  <<< FAILURE! java.lang.IllegalStateException: Could not find any segment owned by Cache 'org.infinispan.stream.DistributedStreamIteratorTest'@DistributedStreamIteratorTest[DIST_SYNC, tx=false]-NodeAM-5250, [Cache 'org.infinispan.stream.DistributedStreamIteratorTest'@DistributedStreamIteratorTest[DIST_SYNC, tx=false]-NodeAL-48678], primary segments: {1-3 5 10 14}, backup segments: {Cache 'org.infinispan.stream.DistributedStreamIteratorTest'@DistributedStreamIteratorTest[DIST_SYNC, tx=false]-NodeAL-48678={0 8-9 13}}
	at org.infinispan.distribution.MagicKey.<init>(MagicKey.java:88)
	at org.infinispan.distribution.MagicKey.<init>(MagicKey.java:137)
	at org.infinispan.stream.DistributedStreamIteratorTest.magicKey(DistributedStreamIteratorTest.java:324)
	at org.infinispan.stream.DistributedStreamIteratorTest.testLocallyForcedStream(DistributedStreamIteratorTest.java:297)
{noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list