Stephen Mallette created TINKERPOP-3007:
-------------------------------------------
Summary: RequestOptions don't get passed over submit()
Key: TINKERPOP-3007
URL: https://issues.apache.org/jira/browse/TINKERPOP-3007
Project: TinkerPop
Issue Type: Improvement
Components: driver
Affects Versions: 3.6.5
Reporter: Stephen Mallette
TinkerPop APIs allow this:
{code}
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();
{code}
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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)