You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Philip (Jira)" <ji...@apache.org> on 2020/08/27 20:28:00 UTC

[jira] [Updated] (TINKERPOP-2409) js: DriverRemoteConnection never times out if server uri not available.

     [ https://issues.apache.org/jira/browse/TINKERPOP-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philip updated TINKERPOP-2409:
------------------------------
    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 failed with a crash error in 3.3.8 - not ideal  but was manageable as code is always run as a dynamic object per call but in 3.4.8 it never resolves or times out so it just hangs. 

I haven't found a work around as yet
  

  was:
constructor...
    const authenticator = new PlainTextSaslAuthenticator(userName,dbData.password)
    this.dc = new DriverRemoteConnection(connectionStrArray.join(''), \{ authenticator, timeout: 6 })
   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 failed with a crash error in 3.3.8 - not ideal  but was manageable as code is always run as a dynamic object per call but in 3.4.8 it never resolves or times out so it just hangs. 

I haven't found a work around as yet
 


> js: DriverRemoteConnection never times out if server uri not available.
> -----------------------------------------------------------------------
>
>                 Key: TINKERPOP-2409
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2409
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: javascript
>    Affects Versions: 3.4.8
>            Reporter: Philip
>            Priority: Major
>
> 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 failed with a crash error in 3.3.8 - not ideal  but was manageable as code is always run as a dynamic object per call but in 3.4.8 it never resolves or times out so it just hangs. 
> I haven't found a work around as yet
>   



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