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

RemoteCacheManager can block waiting to connect/ping

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 9.1.0.Final
    • 8.2.6.Final, 9.0.0.Final
    • Remote Protocols
    • None

      When running Java Hot Rod client on top sensitive environments to blocking, e.g. Vert.x, you realise that the RemoteCacheManager constructor blocks.

      This is due to the fact that RCM constructor waits to establish connections with the initial servers and sends pings on startup.

      You can avoid RCM doing this by passing start=false as parameter and then calling start() manually, but start() is a blocking method.

      So, we should have an alternative start() method that returns a CompletableFuture, hence avoiding any blocking.

              karestig@redhat.com Katia Aresti
              rh-ee-galder Galder ZamarreƱo
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: