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

Implementation of RpcManagerImpl.invokeRemotely causes high CPU usage

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 8.1.0.Final
    • 8.1.0.Beta1
    • Core
    • None

      The method org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(Collection<Address>, ReplicableCommand, RpcOptions) is implemented by blocking on a CompletableFuture, but this then stalls on java.util.concurrent.CompletableFuture.waitingGet(boolean) by spending a significant amount of CPU time by spinning.

      When implementing RPC calls and having to wait for remote operations, spinning is probably not a good idea. Could we try implementing this in some way to hint towards a more pessimistic lock?

            pruivo@redhat.com Pedro Ruivo
            sgrinove Sanne Grinovero
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: