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

Connections not released when closed abruptly in the server side

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.7
    • Fix Version/s: None
    • Component/s: dotnet
    • Labels:
      None
    • Environment:
      Tinkerpop 3.4.7 + Janusgraph 0.5.1 (optional opencypher 1.0.0)

      Description

      We have developed a WService to query a gremlin-server (JanusGraph 0.5.1) using the .net driver. Using the opencypher plugin has allowed us to see a behaviour where the server gets completely blocked after a timeout on the server side. We thought this might be related to issue https://issues.apache.org/jira/browse/TINKERPOP-2288, so we have moved our driver version to the master one (3.4-dev, which includes the PR solving this issue). However, when facing a timeout (server side always, it is the one launching the exception), quite a lot of connections get stalled at CLOSE_WAIT status, and the server becomes unusable. 

      I've been digging around other bugs and issues, and from what I've read, some similar behaviour happened to CosmoDB (although it might be caused in that situation due to the some connection leaks, in this case is the timeout). We have traced down the problem to the driver itself after isolating all the components involved (optimizing the cypher query results in a non-timeout situation where everything is ok; forcing the timeout from pure gremlin replicates the behaviour). 

      We have set up the connection pool params to 16 / 4096 (we are expecting quite a high concurrency load).  

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Bobed Carlos
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: