Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7997

DistributedStreamIteratorTest.testLocallyForcedStream random failure

    XMLWordPrintable

Details

    Description

      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:

      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)
      

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: