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

Short-term memory leak caused by RPCs that complete prior to their timeout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 8.2.0.Beta2, 8.1.2.Final
    • 8.2.0.Beta1, 8.1.1.Final
    • Core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: