-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-threaded access not allowed when define Java.type and javascript function in karate-config.js on karate 1.3.0+ #2204
Comments
@ericdriggs thanks ! was able to replicate this in our local test suite, refer attached commit we now synchronize in one more place to make sure the graal function evaluation for config-js is single-threaded |
1.3.1 released |
and #2222 could be a consequence of that so we are making sure that any js functions in a callSingle result are re-hydrated to current context
@ericdriggs turns out the extra "global lock" we added to fix this may have been overkill and would lock every evaluation of so I have just removed the lock. instead, we post process any JS functions that a would be great if you can check if your use of |
@ptrthomas Is there a new RC to test? |
@ericdriggs yes you are right. I will release an RC next week |
Minimal viable example:
https://github.com/ericdriggs/karate-multi-threaded-access-bug
Versions effected: 1.3.0, 1.4.0.RC1
Versions not effected: 1.2.0
Steps to reproduce:
Mitigations:
Test machine:
The text was updated successfully, but these errors were encountered: