You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Radu Iviniciu (Jira)" <ji...@apache.org> on 2021/03/09 15:17:00 UTC

[jira] [Created] (TINKERPOP-2531) Gremlin .NET driver ConnectionPool can remain without connections if server is down for 1-2 minutes

Radu Iviniciu created TINKERPOP-2531:
----------------------------------------

             Summary: Gremlin .NET driver ConnectionPool can remain without connections if server is down for 1-2 minutes
                 Key: TINKERPOP-2531
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2531
             Project: TinkerPop
          Issue Type: Bug
    Affects Versions: 3.4.10
            Reporter: Radu Iviniciu


We are using Gremlin .NET client to connect to AWS Neptune. 
If the server is down for even just 1 - 2  minutes (E,.g. Instance reboot) the connection pool can remain without any healthy connections permanently even after the server comes back up again. 
Tracked this down to here: 

https://github.com/apache/tinkerpop/blob/60bfc90ce43567d609b1165989c1c74ce825109b/gremlin-dotnet/src/Gremlin.Net/Driver/ConnectionPool.cs#L154

If the server was not ready yet and the connections were not restored as part of  the previous TryGetAvailableConnection then the connection pool will remain empty indefinitely and all connections are dead even after the server is back up. 

Is this longer-ish downtime a use case the client should handle ? Or is it expected behavior and we should let the caller handle the ServerUnavailableException, potentially recreate the GremClient altogether ?  


What do you guys think ? If this is something the client should handle I can take a stab at it and put up a PR. 
Thank you. 





--
This message was sent by Atlassian Jira
(v8.3.4#803005)