Details
-
Bug
-
Resolution: Done
-
Critical
-
9.1.0.Beta1
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)