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

"no connection available!" is being thrown despite lots of free connections

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.4.1
    • Component/s: dotnet
    • Labels:
      None
    • Environment:
      Windows 10, C#, .NET Core, CosmosDB Graph

      Description

      I am submitting multiple graph queries in parallel but in some cases it starts throwing this exception:

      Gremlin.Net.Driver.Exceptions.NoConnectionAvailableException : no connection available!
        at Gremlin.Net.Driver.ConnectionPool.GetAvailableConnectionAsync()
        at Gremlin.Net.Driver.GremlinClient.SubmitAsync[T](RequestMessage requestMessage)

      When GremlinClient is initialized with {PoolSize = 1, MaxInProcessPerConnection = 8} everything works fine, however, with {PoolSize = 8, MaxInProcessPerConnection = 1} it starts throwing those exceptions even though this connection pool should have same throughput. I have tried to increase pool to {PoolSize = 128, MaxInProcessPerConnection = 1} but GremlinClient started to fail even more.

        Attachments

          Activity

            People

            • Assignee:
              Florian Hockmann Florian Hockmann
              Reporter:
              Zaoshi Zaoshi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: