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

[jira] [Created] (TINKERPOP-2215) Better exception message for connection problems

Florian Hockmann created TINKERPOP-2215:
-------------------------------------------

             Summary: Better exception message for connection problems
                 Key: TINKERPOP-2215
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2215
             Project: TinkerPop
          Issue Type: Improvement
          Components: dotnet
    Affects Versions: 3.4.1
            Reporter: Florian Hockmann


TheĀ {{ConnectionPool}} currently checks whether the pool is empty and then tries to retrieve an available connection if it is not empty. If this fails, then a {{ConnectionPoolBusyException}} is thrown with this text:
{quote}All 4 connections have reached their MaxInProcessPerConnection limit of 32. Consider increasing either the PoolSize or the MaxInProcessPerConnection limit.
{quote}
However, this exception can also be thrown if all connections in the pool were already closed and were therefore removed from the pool. The exception message doesn't make sense in this case.

A different exception should be thrown if the pool only contained already closed connections as it's important for users to know whether they actually executed too many requests in parallel or whether there is a connection problem.



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