You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Petr Langr (Jira)" <ji...@apache.org> on 2025/03/21 15:23:00 UTC
[jira] [Comment Edited] (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=17937195#comment-17937195 ]
Petr Langr edited comment on TINKERPOP-3144 at 3/21/25 3:22 PM:
----------------------------------------------------------------
Thanks Ken, I've noticed those event handlers and it is a way I work around that now. But, methods don't provide actual traversal that was executed for me to close, so I need to hold those resources in ThreadLocal variable elsewhere. I create resource pool that gets reused for traversal execution.
was (Author: JIRAUSER309082):
Thanks Key, I've noticed those event handlers and it is a way I work around that now. But, methods don't provide actual traversal that was executed for me to close, so I need to hold those resources in ThreadLocal variable elsewhere. I create resource pool that gets reused for traversal execution.
> 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)