stephen mallette created TINKERPOP3-870:
-------------------------------------------
Summary: 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)