You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by "Cole-Greer (via GitHub)" <gi...@apache.org> on 2023/02/22 01:20:39 UTC

[GitHub] [tinkerpop] Cole-Greer opened a new pull request, #1976: [TINKERPOP-2767] Fix server not handling StackOverflowError in bytecode traversals [For 3.6]

Cole-Greer opened a new pull request, #1976:
URL: https://github.com/apache/tinkerpop/pull/1976

   Cherry picking previously approved changed to 3.6-dev to resolve conflicts.
   
   Fixes TINKERPOP-2767.
   
   The existing error handling in TraversalOpProcessor and SessionOpProcessor during bytecode iteration was catching all exceptions sending an appropriate error response to the client. The OpProcessor however was not catching a StackOverflowError which could be induced by running a query which contains a large repeat step. This Error was being caught by FutureTask.run() but GremlinServer never wait's on this task or checks the results which caused this Error to be lost. A similar issue was found to exist in AbstractSession.process().
   
   This commit adjusts the existing error handling code to catch any Throwable during bytecode iteration so clients will receive error messages and codes for server errors as well as exceptions. Any errors are re-thrown such that the evalFuture FutureTask will continue to have an exception set correctly (although GremlinServer currently does not use this for anything).


-- 
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: commits-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tinkerpop] Cole-Greer closed pull request #1976: [TINKERPOP-2767] Fix server not handling StackOverflowError in bytecode traversals [For 3.6]

Posted by "Cole-Greer (via GitHub)" <gi...@apache.org>.
Cole-Greer closed pull request #1976: [TINKERPOP-2767] Fix server not handling StackOverflowError in bytecode traversals [For 3.6]
URL: https://github.com/apache/tinkerpop/pull/1976


-- 
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: commits-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org