You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2022/12/09 18:25:00 UTC

[jira] [Created] (TINKERPOP-2839) Make borrowing a connection from a pool async

Stephen Mallette created TINKERPOP-2839:
-------------------------------------------

             Summary: Make borrowing a connection from a pool async
                 Key: TINKERPOP-2839
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2839
             Project: TinkerPop
          Issue Type: Improvement
          Components: driver
    Affects Versions: 3.5.4
            Reporter: Stephen Mallette


TINKERPOP-2813 stopped fast {{NoHostAvaialbleException}} errors but the change made it more evident that {{submitAsync()}} was never as async as it should have been. Since {{ConnectionPool.borrowConnection()}} was synchronous you could still have a block, but it was then quickly hidden for future requests by the fast NHA that would follow a {{TimeoutException}} from that wait. It seems like borrowing a connection would have to be async if we wanted {{submitAsync()}} to be truly behave as its name implies.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)