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

SingleClusterExecutorTest.testExecutorTriConsumerTimeoutException random failure

    XMLWordPrintable

Details

    Description

      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)
      

      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().

      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: