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

RequestOptions don't get passed over submit()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.6.5
    • None
    • driver

    Description

      TinkerPop APIs allow this:

              final Cluster cluster = test.createGremlinCluster();
              final GraphTraversalSource g = traversal().withRemote(DriverRemoteConnection.using(cluster));
              try {
                  client.submit(g.with("evaluationTimeout",10000).
                          V("1").repeat(__.out().limit(1)).times(1000).constant(1)).all().get();
              } catch (Exception ex) {
                  System.out.println(ex.getMessage());
              }
              cluster.close();
      

      which bypasses functionality that injects the timeout and other RequestOptions into the request. Ultimately, this usage is undocumented but allowable without clear documentation saying otherwise. Deprecate this immediately, then come up with a proper means to remove it entirely in a major version where a breaking change can take place.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: