]
Dan Berindei updated ISPN-9807:
-------------------------------
Status: Open (was: New)
SingleClusterExecutorTest.testExecutorTriConsumerTimeoutException
random failure
--------------------------------------------------------------------------------
Key: ISPN-9807
URL:
https://issues.jboss.org/browse/ISPN-9807
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Core
Affects Versions: 10.0.0.Alpha2, 9.4.4.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Labels: testsuite_stability
Fix For: 10.0.0.Beta1, 9.4.5.Final
{noformat}
testExecutorTriConsumerTimeoutException[false](org.infinispan.manager.SingleClusterExecutorTest)
Time elapsed: 0.033 s <<< FAILURE!
java.lang.NullPointerException
at
org.infinispan.remoting.transport.AbstractRequest.setTimeoutFuture(AbstractRequest.java:94)
at
org.infinispan.remoting.transport.AbstractRequest.setTimeout(AbstractRequest.java:55)
at
org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeCommand(JGroupsTransport.java:831)
at
org.infinispan.manager.impl.SingleClusterExecutor.submitConsumer(SingleClusterExecutor.java:136)
at org.infinispan.manager.ClusterExecutor.submitConsumer(ClusterExecutor.java:116)
at
org.infinispan.manager.AllClusterExecutorTest$17.call(AllClusterExecutorTest.java:402)
at org.infinispan.test.TestingUtil.withCacheManagers(TestingUtil.java:1593)
at
org.infinispan.manager.AllClusterExecutorTest.testExecutorTriConsumerTimeoutException(AllClusterExecutorTest.java:382)
{noformat}
The mock {{ScheduledExecutorService}} returns a {{null}} future, causing a
{{NullPointerException}} when the request is already done and the timeout future needs to
be cancelled. Can be reproduced reliably by adding a delay before {{isDone()}} in
{{AbstractRequest.setTimeoutFuture()}}.