-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Some of the iteration test failures can fail randomly with a Unhandled exception not being handled. These failures are due to the iteration waiting for a new topology but the cache is shut down instead. This is how the test was written. We should make the stream code a bit more hardened when it comes to having a shutdown in the middle.
Test failure can be seen at https://ci.infinispan.org/view/Infinispan/job/Infinispan/job/master/2676/testReport/junit/org.infinispan.partitionhandling/StreamDistPartitionHandlingTest%5bDIST_SYNC,%20DENY_READ_WRITES%5d/Undelivered/
java.util.concurrent.CompletionException: org.infinispan.commons.IllegalLifecycleStateException at java.base/java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367) at java.base/java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376) at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1074) at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506) at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073) at org.infinispan.statetransfer.StateTransferLockImpl.notifyTopologyInstalled(StateTransferLockImpl.java:136) at org.infinispan.statetransfer.StateTransferLockImpl.stop(StateTransferLockImpl.java:38) at org.infinispan.statetransfer.CorePackageImpl$4.stop(CorePackageImpl.java:160) at org.infinispan.statetransfer.CorePackageImpl$4.stop(CorePackageImpl.java:158) at org.infinispan.factories.impl.BasicComponentRegistryImpl.invokeStop(BasicComponentRegistryImpl.java:665) at org.infinispan.factories.impl.BasicComponentRegistryImpl.doStopWrapper(BasicComponentRegistryImpl.java:661) at org.infinispan.factories.impl.BasicComponentRegistryImpl.stopWrapper(BasicComponentRegistryImpl.java:649) at org.infinispan.factories.impl.BasicComponentRegistryImpl.stop(BasicComponentRegistryImpl.java:516) at org.infinispan.factories.AbstractComponentRegistry.internalStop(AbstractComponentRegistry.java:374) at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:308) at org.infinispan.cache.impl.CacheImpl.performImmediateShutdown(CacheImpl.java:1063) at org.infinispan.cache.impl.CacheImpl.stop(CacheImpl.java:1028) at org.infinispan.cache.impl.AbstractDelegatingCache.stop(AbstractDelegatingCache.java:521) at org.infinispan.manager.DefaultCacheManager.terminate(DefaultCacheManager.java:786) at org.infinispan.manager.DefaultCacheManager.stopCaches(DefaultCacheManager.java:842) at org.infinispan.manager.DefaultCacheManager.internalStop(DefaultCacheManager.java:818) at org.infinispan.manager.DefaultCacheManager.stop(DefaultCacheManager.java:794) at org.infinispan.test.SecurityActions.lambda$stopManager$0(SecurityActions.java:35) at org.infinispan.security.Security.doPrivileged(Security.java:56) at org.infinispan.test.SecurityActions.doPrivileged(SecurityActions.java:29) at org.infinispan.test.SecurityActions.stopManager(SecurityActions.java:34) at org.infinispan.test.TestingUtil.killCacheManagers(TestingUtil.java:860) at org.infinispan.test.MultipleCacheManagersTest.clearContent(MultipleCacheManagersTest.java:160) at jdk.internal.reflect.GeneratedMethodAccessor76.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59) at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458) at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222) at org.testng.internal.Invoker.invokeMethod(Invoker.java:646) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) at org.testng.TestRunner.privateRun(TestRunner.java:648) at org.testng.TestRunner.run(TestRunner.java:505) at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) at org.testng.SuiteRunner.access$000(SuiteRunner.java:40) at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:489) at org.testng.internal.thread.ThreadUtil$1.call(ThreadUtil.java:52) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: org.infinispan.commons.IllegalLifecycleStateException at org.infinispan.statetransfer.StateTransferLockImpl.topologyFuture(StateTransferLockImpl.java:144) at org.infinispan.statetransfer.StateTransferLockImpl.lambda$topologyFuture$1(StateTransferLockImpl.java:156) at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072)