Skip to content
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

mongo-client:Multi threaded access requested by thread Thread[] but is not allowed for language(s) js #601

Open
darrenweb opened this issue Apr 18, 2023 · 2 comments

Comments

@darrenweb
Copy link

darrenweb commented Apr 18, 2023

Hi
I use vertx-mongo-client in es4x to save data.
npm start and open the browser,
if i just refresh the browser once (send a request), the data will be saved to mongodb normally, and there is no abnormal prompt,
but if i refresh the browser quickly twice (send 2 requests ), the following error will be prompted, and the data has not been saved to mongodb.
The following is the code, what do I need to do so that multiple requests can still be saved in the mongodb?

Thanks!

20230418105005

@pmlopes
Copy link
Contributor

pmlopes commented May 10, 2023

This is a issue with the underlying client that isn't properly isolated. While in Java this usually isn't a problem, graal-js is very strict and will not allow it. There isn't anything we can do in es4x except hoping that the upstream client is proerly isolated.

@it-solution-div3
Copy link

Is this a problem caused by the design of vertx-mongo-client.jar, and if vertx-mongo-client.jar is rewritten, can this problem be solved theoretically?
Thanks!

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

No branches or pull requests

3 participants