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

Make borrowing a connection from a pool async

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            spmallette Stephen Mallette

            Dates

              Created:
              Updated:

              Slack

                Issue deployment