You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/03/19 12:04:00 UTC

[jira] [Commented] (TINKERPOP-3144) Traversal not closed after interruption

    [ https://issues.apache.org/jira/browse/TINKERPOP-3144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17936800#comment-17936800 ] 

ASF GitHub Bot commented on TINKERPOP-3144:
-------------------------------------------

langrp opened a new pull request, #3075:
URL: https://github.com/apache/tinkerpop/pull/3075

   https://issues.apache.org/jira/browse/TINKERPOP-3144
   
   Close traversal on execution failure or interruption in order to release all its resources. Currently the traversal gets closed only when its consumed entirely, but it will not get closed on failures.
   
   `StandardOpProcessor` is kinda in question still as it requires to read bindings and close all traversals.
   
   <!--
   Thanks for contributing! Reminders:
   + TARGET the earliest branch where you want the change
       3.7-dev -> 3.7.4 (non-breaking only)
       3.8-dev -> 3.8.0
       master  -> 4.0.0
   + Committers will MERGE the PR forward to newer versions
   + ADD entry to the CHANGELOG.asciidoc for the targeted version
       Do not reference a JIRA number there
   + ADD JIRA number to title and link in description
   + PRs requires 3 +1s from committers OR
                  1 +1 and 7 day wait to merge.
   + MORE details: https://s.apache.org/rtnal
   -->




> Traversal not closed after interruption
> ---------------------------------------
>
>                 Key: TINKERPOP-3144
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3144
>             Project: TinkerPop
>          Issue Type: Bug
>    Affects Versions: 3.7.3
>            Reporter: Petr Langr
>            Priority: Major
>
> I noticed that when traversal takes a long time and eventually its execution gets interrupted, the traversal does not get closed.
> I work on custom graph provider, which needs to release its resources when traversal is finished. However, when the execution takes too much time, the executor thread gets interrupted and traversal hangs open.
> Here is example log:
> {code:java}
> 2025-03-18 13:18:35.533 WARN org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor - A timeout occurred during traversal evaluation of [RequestMessage{, requestId=c4de3b57-c90c-4ff7-ab4d-194684f8eff8, op='bytecode', processor='traversal', args={gremlin=[[withStrategies(OptionsStrategy), withStrategies(PartitionStrategy)], [V(), or([[], [has(label, eq(EntityGroup)), has(createdTime, lt(1742303760000))]], [[], [has(createdTime, lt(1742303760000)), has(lastSeenTime, gte(1742300160000))]]), has(_deleted, neq(true)), has(id, within([e-10255437896472327583])), union([[], [outE(), where([[], [inV(), has(label, eq(KubernetesPod)), has(createdTime, lt(1742303760000)), has(lastSeenTime, gte(1742300160000)), has(_deleted, neq(true)), has(label, eq(KubernetesPod)), has(label, within([KubernetesPod]))]])]], [[], [inE(MemberOf), where([[], [outV(), has(label, eq(KubernetesPod)), has(createdTime, lt(1742303760000)), has(lastSeenTime, gte(1742300160000)), has(_deleted, neq(true)), has(label, eq(KubernetesPod)), has(label, within([KubernetesPod]))]])]]), project(e, out, in), by([[], [valueMap(), with(~tinkerpop.valueMap.tokens, 2)]]), by([[], [outV(), valueMap(), with(~tinkerpop.valueMap.tokens)]]), by([[], [inV(), valueMap(), with(~tinkerpop.valueMap.tokens)]])]], aliases={g=g}}}] - consider increasing the limit given to evaluationTimeout {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)