[infinispan-issues] [JBoss JIRA] (ISPN-6192) Short-term memory leak caused by RPCs that complete prior to their timeout

Paul Ferraro (JIRA) issues at jboss.org
Tue Feb 9 12:12:00 EST 2016


Paul Ferraro created ISPN-6192:
----------------------------------

             Summary: Short-term memory leak caused by RPCs that complete prior to their timeout
                 Key: ISPN-6192
                 URL: https://issues.jboss.org/browse/ISPN-6192
             Project: Infinispan
          Issue Type: Bug
          Components: Core
    Affects Versions: 8.1.1.Final, 8.2.0.Beta1
            Reporter: Paul Ferraro
            Assignee: Paul Ferraro
            Priority: Blocker


The CommandAwareRpcDispatcher uses the timeout executor to trigger the cancellation of an async rpc after some timeout.  However, in the event that the command executes prior to the timeout (i.e. most of the time), the task remains in the timeout executor's queue.  Consequently, the reference to the RspListFuture/SingleResponseFuture will remain in the executor's queue unnecessarily for the duration of the timeout.
Using ScheduledThreadPoolExecutor.setRemoveOnCancelPolicy(true) should fix the problem.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list