jroimartin commented on code in PR #1700:
URL: https://github.com/apache/tinkerpop/pull/1700#discussion_r899121528


##########
gremlin-go/driver/request.go:
##########
@@ -83,6 +88,85 @@ func makeBytecodeRequest(bytecodeGremlin *Bytecode, 
traversalSource string, sess
        }
 }
 
+// allowedReqArgs contains the arguments that will be extracted from the
+// bytecode and sent with the request.
+var allowedReqArgs = map[string]bool{
+       "evaluationTimeout":       true,
+       "scriptEvaluationTimeout": true,

Review Comment:
   Thanks for the review!
   
   Would it be a problem to keep it for now? If I'm not wrong, this option is 
still supported by other GLVs and mentioned in the Tinkerpop reference. By 
supporting it we anticipate to users that try to use the old name and don't 
understand why the timeout is being ignored or why it does not work with all 
GLVs. I feel it is better to be consistent among GLVs and, once the setting is 
fully deprecated, removing the support from all the languages at once. What do 
you think?
   
   Some instances,
   
   **gremlin-python**
   
   
https://github.com/apache/tinkerpop/blob/7ad487b75992a4c46871ae9aab2d5451c133eb8b/gremlin-python/src/main/python/gremlin_python/driver/driver_remote_connection.py#L171
   
   **Tinkerpop reference**
   
   In the different GLV sections:
   
   > The following options are allowed on a per-request basis in this fashion: 
batchSize, requestId, userAgent and evaluationTimeout (formerly 
scriptEvaluationTimeout which is also supported but now deprecated).
   
   Which suggests that `scriptEvaluationTimeout` should still work although is 
not recommended to use it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to