[
https://issues.apache.org/jira/browse/TINKERPOP-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15488643#comment-15488643
]
ASF GitHub Bot commented on TINKERPOP-1442:
-------------------------------------------
GitHub user spmallette opened a pull request:
https://github.com/apache/tinkerpop/pull/412
TINKERPOP-1442 Improved session cleanup on client close [tp31]
https://issues.apache.org/jira/browse/TINKERPOP-1442
While not a perfect implementation, a long run job blocking a close request
from the client will now at least get an attempt at interruption rather than
consuming the thread indefinitely (or until timeout whenever that is).
All unit tests are good including gremlin-server integration tests.
VOTE +1
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/tinkerpop TINKERPOP-1442
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tinkerpop/pull/412.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #412
----
commit e7d63381dcc0c53999f4270f0e6b9d4a56093673
Author: Stephen Mallette <[email protected]>
Date: 2016-09-13T22:10:09Z
Improved session cleanup on client close.
While not a perfect implementation, a long run job blocking a close request
from the client will now at least get an attempt at interruption rather thant
consuming the thread indefinitely. TINKERPOP-1442
----
> Killing session should make better attempt to cleanup
> -----------------------------------------------------
>
> Key: TINKERPOP-1442
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1442
> Project: TinkerPop
> Issue Type: Bug
> Components: server
> Affects Versions: 3.1.4
> Reporter: stephen mallette
> Assignee: stephen mallette
> Fix For: 3.1.5
>
>
> When a session is killed it tries to rollback transactions prior to ending
> the session. If there is a long-run script (or perhaps a queue of jobs) then
> this close job just gets added to the queue. If that rollback job never
> executes then the transaction gets orphaned.
> Graph implementations tend to have their own methods for cleaning up these
> lingering transactions, but it would be better if the shutdown could occur in
> an orderly fashion.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)