-
Notifications
You must be signed in to change notification settings - Fork 174
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
Connection pool exhaustion from delivery thread serializing reports #812
Comments
Hi @evanlok Apologies for the delay in response, and thanks for your patience. In order for us to investigate this further, can you please confirm whether our understanding of what you are doing in the example is correct?
Please elaborate on anything here that may not be exactly correct. |
Yes, that is correct. |
Hi @evanlok Can you please elaborate on why you are making a database query in |
The |
Hi @evanlok Thanks for your patience on this. We now have a task on our backlog to discuss and explore our options here when priorities allow. I can't currently provide an ETA on when this could be looked at, but we will make sure to post any further updates on this thread regarding future discussions or developments on this. |
Describe the bug
Bugsnag's delivery thread can checkout an ActiveRecord database connection that is never returned to the pool. This causes subsequent connections to time out waiting for a connection from the pool.
Steps to reproduce
to_s
which is called when it gets serialized by bugsnag. Theto_s
method contains code that queries the database.to_s
method is invoked byBugsnag::Cleaner#traverse_object
Environment
Example code snippet
Error messages:
The text was updated successfully, but these errors were encountered: