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

js: DriverRemoteConnection never times out if server uri not available.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.8
    • Fix Version/s: 3.5.0, 3.4.9
    • Component/s: javascript
    • Labels:
      None

      Description

      constructor...
          const authenticator = new PlainTextSaslAuthenticator(userName,dbData.password)
          this.dc = new DriverRemoteConnection(connectionStrArray.join(''), { authenticator })
         this.graph = new Graph()
       
      function code...
          const g = this.graph.traversal().withRemote(this.dc)
            let count = await g.V().count().next()
            console.log(count)
       
      This works great with a connection but with no connection it failed with a crash error in 3.3.8 - not ideal  but was manageable as code is always run as a dynamic object per. In 3.4.8 when there is no connection it never resolves or times out so it just hangs. 

      I haven't found a work around as yet
       

        Attachments

          Activity

            People

            • Assignee:
              spmallette Stephen Mallette
              Reporter:
              Crosland Philip
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: