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

PrimitiveFailure (FFI::Pointer#primitive_write_int primitive failed) #2560

Closed
zaidakram opened this issue Aug 18, 2013 · 6 comments
Closed

Comments

@zaidakram
Copy link

Im running a Rails Application in production, Application specs are as follows.

  • Puma Version : 2.0.1
  • Rails version : 3.2.13
  • DB Adapter : Mongoid 3.1.2
  • Application is running in Thread Safe mode.

I was not able to get a complete stack trace. Since I am not able to reproduce this issue in development ENV. Restarting the the app resolved the issue for now.

@dbussink
Copy link
Contributor

@cpuguy83 this sounds a lot like your issue with mongoid's thread pool right?

@zaidakram
Copy link
Author

I've come across gist of @cpuguy83 here. And his pull request for mongoid here. So I think you are right. Let me try mongoid edge to see if it works.

@cpuguy83
Copy link

Yes.
FYI, moped master (mongoid's own db adapter) has connection pooling, though I have not tested it yet.

@zaidakram
Copy link
Author

Got @cpuguy83 patch working. So I'm closing this issue for now.

@cpuguy83
Copy link

@zaidakram Keep in mind, if you used the gist, some of the Mongoid tests will fail.
The PR I made passes all tests.

@zaidakram
Copy link
Author

@cpuguy83 thanks for the heads up. I just used the patch in a hurry. I'll Surely use your PR. Waiting for moped next release eagerly though.. Thanks again!

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