-
Notifications
You must be signed in to change notification settings - Fork 2.3k
packets.go:88 ... broken pipe #116
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
Comments
@pengux please put the code you use up on play.golang.org and post a link to it here (or make it a gist). |
@arnehormann Here is the code http://play.golang.org/p/_LrSVgb5t5, but it is of course not run-able, because you'll need a valid sample database for it |
@pengux here's what I think is happening. In your program, you select from a table and update it before the select is done. Update acquires a lock which interferes with the select still in progress. I think the MySQL server doesn't like that and either causes a deadlock or quits your queries. I'm closing this. If you still have issues, please get back to us. |
@arnehormann OK, do you mean that the driver doesn't copy the results into some kind of resultset? I was under the impression that the SELECT query would have been finished in Mysql before the UPDATE queries are executed? I'll try your suggestions and will report back if the issues are still there. |
The driver just returns what arrives on the socket. As I said in issue 108 - there is no |
This could be the result of another read / write timeout. |
I'm selecting a few thousands rows at a time, loop through each row and do a simple UPDATE. Now and then while looping I get:
It seems like the driver could not complete the UPDATE query while writing the data, but I'm running on localhost so it should not be a network problem. I'm running Mysql 5.5 and the latest go mysql driver.
The text was updated successfully, but these errors were encountered: