]
Dan Berindei updated ISPN-10086:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
AllClusterExecutorTest.testExecutorTriConsumerTimeoutException random
failures
------------------------------------------------------------------------------
Key: ISPN-10086
URL:
https://issues.jboss.org/browse/ISPN-10086
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Core
Affects Versions: 10.0.0.Beta3, 9.4.11.Final
Reporter: Dan Berindei
Priority: Major
Labels: testsuite_stability
Fix For: 10.0.0.Beta4, 9.4.12.Final
When running tests in parallel, the remote request may complete before the thread that
sent the request resumes. Because the scheduled executor is mocked to return {{null}},
this leads to a {{NullPointerException}}:
{noformat}
09:43:41,995 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed:
org.infinispan.manager.AllClusterExecutorTest.testExecutorTriConsumerTimeoutException
java.lang.NullPointerException: null
at
org.infinispan.remoting.transport.AbstractRequest.setTimeoutFuture(AbstractRequest.java:94)
~[classes/:?]
at org.infinispan.remoting.transport.AbstractRequest.setTimeout(AbstractRequest.java:55)
~[classes/:?]
at
org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeCommand(JGroupsTransport.java:831)
~[classes/:?]
at
org.infinispan.manager.impl.AllClusterExecutor.submitConsumer(AllClusterExecutor.java:182)
~[classes/:?]
at org.infinispan.manager.ClusterExecutor.submitConsumer(ClusterExecutor.java:116)
~[classes/:?]
at org.infinispan.manager.Test$17.call(AllClusterExecutorTest.java:402)
~[test-classes/:?]
at org.infinispan.test.TestingUtil.withCacheManagers(TestingUtil.java:1601)
~[test-classes/:?]
at
org.infinispan.manager.AllClusterExecutorTest.testExecutorTriConsumerTimeoutException(AllClusterExecutorTest.java:382)
~[test-classes/:?]
{noformat}
The problem may be that the test calls {{Mockito.verify()}} from the consumer twice, once
for each node, instead of doing it only on the remote node.