You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2015/10/08 14:21:27 UTC

[jira] [Closed] (TINKERPOP3-870) Rebound client requires a connection to occur on the underlying client.

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

stephen mallette closed TINKERPOP3-870.
---------------------------------------
    Resolution: Fixed

Fixed with: https://github.com/apache/incubator-tinkerpop/commit/8eb71e17e68134cdf4bb86d43b30071becac4b9a

> Rebound client requires a connection to occur on the underlying client.
> -----------------------------------------------------------------------
>
>                 Key: TINKERPOP3-870
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-870
>             Project: TinkerPop 3
>          Issue Type: Bug
>          Components: driver
>    Affects Versions: 3.0.1-incubating
>            Reporter: stephen mallette
>            Assignee: stephen mallette
>             Fix For: 3.1.0-incubating, 3.0.2-incubating
>
>
> For some reason a "rebound" {{Client}} requires the underlying client to "connect" first:
> {code}
> gremlin> cluster = Cluster.build().create();
> ==>localhost/127.0.0.1:8182
> gremlin> client = cluster.connect();
> ==>org.apache.tinkerpop.gremlin.driver.Client$ClusteredClient@26a94fa5
> gremlin> rebound = client.rebind("graph")
> ==>org.apache.tinkerpop.gremlin.driver.Client$ReboundClusteredClient@6ef7623
> gremlin> rebound.submit("1+1").all().get().get(0).getInt()
> java.lang.RuntimeException: java.util.concurrent.TimeoutException: Timed out waiting for an available host.
> Display stack trace? [yN] n
> gremlin> client.submit("1+1").all().get().get(0).getInt()
> ==>2
> gremlin> rebound.submit("1+1").all().get().get(0).getInt()
> ==>2
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)