-
Notifications
You must be signed in to change notification settings - Fork 17
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
Regression: Trilogy::SyscallError::EADDRNOTAVAIL no longer converted to ActiveRecord::StatementInvalid #52
Comments
fixed in trilogy-libraries/trilogy#98 |
What does this behave like on Rails |
Haven't tested this on rails main but this isn't actually a problem the adapter should solve. The client should be returning this as a with trilogy-libraries/trilogy#98 the behaviour is now the same as with mysql2. |
@dhruvCW, believe I'd now like to know more about this perfect situation. |
If you are refering to the situation that triggers this error. It seems to exclusively affect our usage of circle-ci. We have two parallel jobs one that runs rspec against a test database as a CI dependency (splitting the tests across multiple jobs), and a job that run rspec + the above mentioned route dumps. The latter is the point where we face this problem. Based on a bit of google-fu it seems that the client cannot connect to the port/host combination (localhost) because another entity is already bound to it. This might make sense if we have multiple processes accessing the port but I am not sure my reasoning is right 🤷 as for the solution, handling this as a |
Seems curious only because MySQL should allow for 150 or 200 connections. You can see how many your instance has set by running:
|
my apologies for not being clear we don't have a running mysql server for the job that fails (the socket error seems to be for the client itself). |
Ah, cool. As a side-note, there is a PR for edge Rails that is likely to drop soon which affects Trilogy error messages. It does not look like it will impact this issue, but I wanted to examine this as we move forward with a fix. |
thanks for sharing this PR based on the proposed changes this situation should result in a |
closing in favour of trilogy-libraries/trilogy#113 |
In our CI when we run
we get the following error message (since trilogy adapter 3.1.0)
this is a regression since previously it used to result in
without any breaks.
The text was updated successfully, but these errors were encountered: