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

Concurrent requests cause data corruption #183

Closed
caldwell opened this Issue May 19, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@caldwell

We're seeing weird data corruption issues on queries when more than one http request is happening at a time. Json objects are turning into arrays seemingly at random. For example:

 { "my_data": { "a": 1, "b": 2 } }

will change into

 { "my_data": [1,2] }

The values are intact but the object turned into an array. Our actual data is a very large json document and different parts of it will be corrupt on each request.

This goes away completely when we hit our app with sequential http requests. When we test the app with php-fpm and its mongo driver instead of hhvm, it also works.

I suspect there's a locking issue somewhere in the driver. Thoughts?

@derickr

This comment has been minimized.

Show comment
Hide comment
@derickr

derickr Jun 2, 2017

Member

It is likely that there is some memory re-use/corruption going on as locking shouldn't need to be done in the driver itself.

Member

derickr commented Jun 2, 2017

It is likely that there is some memory re-use/corruption going on as locking shouldn't need to be done in the driver itself.

@derickr

This comment has been minimized.

Show comment
Hide comment
@derickr

derickr Jun 2, 2017

Member

This issue is being closed, as the MongoDB driver for HHVM is no longer maintained. Please read https://drck.me/hhvm-mongo-da6 for the reasoning behind this decision. If you would like to take over maintenance of the driver, please let me know, and we will see how we can achieve this.

Member

derickr commented Jun 2, 2017

This issue is being closed, as the MongoDB driver for HHVM is no longer maintained. Please read https://drck.me/hhvm-mongo-da6 for the reasoning behind this decision. If you would like to take over maintenance of the driver, please let me know, and we will see how we can achieve this.

@derickr derickr closed this Jun 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment