-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Goroutine leak when dial err in go1.8 #626
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
Fixed in #627 |
Hi @qw4990 enviroment: We found our process hang in sql execute, and there are lots of below logs in pprof full stack trace:
There is 452 times such logs in full stack dump logs, and our MaxOpenConns is 512 |
What is stacktrace for them?
It is normal, not a hung. |
Thank you methane, our problem solved! We finally found the reason why the process hung, it was a rookie mistake, we used mysql.Query() to execute update sql and rows not closed, which is exacly the "BAD" usage of this article: http://go-database-sql.org/modifying.html There was lots of this kind of stacktrace like that: Thanks all anyway. |
Issue description
Goroutine leak when dial err in go1.8
Example code
Error log
Configuration
Driver version (or git SHA): 8fefef0
Go version: go1.8.1 darwin/amd64
Server version: MySQL 5.6
Server OS: OS X
The text was updated successfully, but these errors were encountered: