Skip to content
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

TINKERPOP-2106 throw TimeoutException instead of TraversalInterruptedException #1009

Closed
wants to merge 1 commit into from

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Nov 29, 2018

https://issues.apache.org/jira/browse/TINKERPOP-2106

When gremlin executes timeout, it throws an error "TraversalInterruptedException: null".
According to our user feedback(https://github.com/hugegraph/hugegraph/issues/102), the message is not easy to understand. we think it is clearer if it prompts timeout error directly.

This commit converts some InterruptedException to a TimeoutException.

…Exception

When gremlin executes timeout, it throws an error "TraversalInterruptedException: null".
According to our user feedback, the message is not easy to understand.
We think it is clearer if it prompts timeout error directly.

This commit converts some InterruptedException to a TimeoutException.
@spmallette
Copy link
Contributor

i was a bit hesitant about this one at first, but perhaps this makes sense. looking at the TraversalOpProcessor, it seems to have similar behavior converting the TraversalInterruptionException to a simple TimeoutException.

All tests pass with docker/build.sh -t -i

VOTE +1

@spmallette
Copy link
Contributor

Merge to tp33/master with c923564

@spmallette spmallette closed this Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants