Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2839

Make borrowing a connection from a pool async

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.4
    • None
    • driver
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            spmallette Stephen Mallette
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: