Skip to content

TINKERPOP-2765 Fix concurrency issue during script translation in the GremlinGroovyScriptEngine.#1778

Merged
spmallette merged 1 commit intoapache:3.6-devfrom
Bit-Quill:ken/TINKERPOP-2765-3.6
Aug 10, 2022
Merged

TINKERPOP-2765 Fix concurrency issue during script translation in the GremlinGroovyScriptEngine.#1778
spmallette merged 1 commit intoapache:3.6-devfrom
Bit-Quill:ken/TINKERPOP-2765-3.6

Conversation

@kenhuuu
Copy link
Contributor

@kenhuuu kenhuuu commented Aug 5, 2022

The same changes as #1768 except for 3.6-dev.

From PR 1768:
An issue occurs when the GremlinGroovyScriptEngine is called from multiple threads to evaluate bytecode that contains lambdas. The default translator is not thread-safe which results in queries being interlaced with one another. This is fixed by creating a new instance of the translator per translation so that the translation process isn't interfered with. This primarily affects the UnifiedChannelizer because it currently uses the same instance of the translator from multiple threads.

Fixes https://issues.apache.org/jira/browse/TINKERPOP-2765

@codecov-commenter
Copy link

Codecov Report

Merging #1778 (c2b61fb) into 3.6-dev (33c1d37) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           3.6-dev    #1778   +/-   ##
========================================
  Coverage    64.06%   64.06%           
========================================
  Files           23       23           
  Lines         3679     3679           
========================================
  Hits          2357     2357           
  Misses        1154     1154           
  Partials       168      168           

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@spmallette spmallette merged commit 80245fa into apache:3.6-dev Aug 10, 2022
@kenhuuu kenhuuu deleted the ken/TINKERPOP-2765-3.6 branch March 17, 2023 20:57
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.

3 participants

Comments