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

Apply the use Thread.handle_interrupt to protect query fix to the 0.3.x branch #731

Closed
wants to merge 1 commit into from

Conversation

rrosenblum
Copy link

This is to back port of @tamird's #592 to the 0.3.x branch.

I recently came across the issue, This connection is still waiting for a result, try again once you have the result. I am running Ruby 2.2.4, Rails 3.2.22, Mysql2 0.3.20, and MySQL 5.6. I came across issues #99 and #566. These led me to PR #592. I saw that the fix was applied to master (0.4.x), but not to 0.3.x. This change was able to solve the problem that I was experiencing. I was wondering why the fix was not applied to the 0.3.x branch?

@chrisledet
Copy link

This is happening with one of our Rails apps in test mode. I'm running Ruby 2.2.1, Rails 4.1.14, mysql2 0.3.20, MySQL 5.6. Let me know if I could be of any help.

@rrosenblum
Copy link
Author

@chrisledet, I am confident that this will fix the issue because it is the same fix that was applied to 0.4.2. For the sake of the fix, I am glad to see that there are other people that are in support of this fixing going into the 0.3.x.

@sodabrew sodabrew added this to the 0.3.21 milestone Feb 17, 2016
@chrisledet
Copy link

@rrosenblum Yupp, thanks for saving us the headache of searching for this bug and fixing it.

@rrosenblum
Copy link
Author

I didn't see mention of this in the other PR or issues, but I think this will also fix the error: This connection is in use by ...

@getsaf
Copy link

getsaf commented Apr 14, 2016

This bugfix is very badly needed. The fallout from this error is pretty destructive for Rails apps considering the fact that we end up with an in-use connection placed back into the pool.

👍 this PR!

@rrosenblum
Copy link
Author

I haven't heard anything in a few months. @sodabrew and @brianmario what are your thoughts on this?

@sodabrew sodabrew mentioned this pull request May 7, 2016
@sodabrew
Copy link
Collaborator

sodabrew commented May 7, 2016

I looked this over, and it's missing some of @tamird's changes to client.c. I'll put together an equivalent rebase in a new PR.

sodabrew added a commit that referenced this pull request May 8, 2016
Resolve #731 with cherry-picked commits from #592 and #679.
@sodabrew
Copy link
Collaborator

sodabrew commented May 8, 2016

Resolved as #751. Thanks very much for nudging me to ship this.

@sodabrew sodabrew closed this May 8, 2016
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

Successfully merging this pull request may close these issues.

4 participants