You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Zaoshi (JIRA)" <ji...@apache.org> on 2019/02/01 11:13:00 UTC

[jira] [Created] (TINKERPOP-2148) "no connection available!" is being thrown despite lots of free connections

Zaoshi created TINKERPOP-2148:
---------------------------------

             Summary: "no connection available!" is being thrown despite lots of free connections
                 Key: TINKERPOP-2148
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2148
             Project: TinkerPop
          Issue Type: Bug
          Components: dotnet, tinkergraph
    Affects Versions: 3.4.0
         Environment: Windows 10, C#, .NET Core, CosmosDB Graph
            Reporter: Zaoshi


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)