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

Rebound client requires a connection to occur on the underlying client.

    XMLWordPrintableJSON

Details

    Description

      For some reason a "rebound" Client requires the underlying client to "connect" first:

      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
      

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            spmallette Stephen Mallette
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: