-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GIE Compiler] Unify Gremlin Timeout Configurations #2953
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2953 +/- ##
=======================================
Coverage 42.37% 42.37%
=======================================
Files 99 99
Lines 10649 10649
=======================================
Hits 4512 4512
Misses 6137 6137 Continue to review full report in Codecov by Sentry.
|
Set as 2s, but timeout shows 1.79s. Should we ignore the 1.79s in the output? |
public QueryTimeoutConfig(long executionTimeoutMS) { | ||
this.executionTimeoutMS = executionTimeoutMS; | ||
this.channelTimeoutMS = (long) (executionTimeoutMS * (1 - GRADUAL_FACTOR)); | ||
this.engineTimeoutMS = (long) (executionTimeoutMS * (1 - 2 * GRADUAL_FACTOR)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the three time align. Should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lidongze0629 Try these code on gs-portal?
It seems fine with the gremlin nodejs client. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice Job!
What do these changes do?
Unify gremlin timeout configurations. By this pr, the console will output like this if gremlin query execution timeout is set to 2000ms.
Timeout can be set by two ways:
query.execution.timeout.ms: 2000
inconf/ir.compiler.properties
g.with(ARGS_EVAL_TIMEOUT, 2000).V()
org.with(Tokens.ARGS_EVAL_TIMEOUT, 2000).V()
. if timeout value is of long type, suffix with 'L'Related issue number
Fixes #2854