-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Error 1129: Host 'xxx' blocked because of many connection errors #1056
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
looks like the error is returned on Line 81 in 17ef3dd
Most probably caused by passing context into watchCancel: Lines 68 to 71 in 17ef3dd
|
Can I have all of your code including import section? |
This is not surprising to me. Before the connector interface is implemented, you can not cancel the creating connection with contexts. Now you can cancel it, so you need to chose the timeout carefully. |
@shogo82148 Yes, sorry I was using |
@methane I set it to 100ms just to be able to reproduce the issue we had. Maybe in such cases |
I think it is not big enough. You should chose the number which works well even under high load.
If timeout long enough and MaxOpenConns is low enough, you shouldn't see a lot of errors.
|
Issue description
After multiple successive deadline exceeded errors, on connection
Open
orPing
Error 1129
is returned and can no longer connect to the DB unlessFLUSH HOSTS
is called.Looks like #941 is causing the problem. I was able to reproduce it on 17ef3dd and 89ec2a9. But not on df597a2
Example code
Logs
Configuration
Driver version (or git SHA): 1.5.0 17ef3dd
Go version: go version go1.13.4 darwin/amd64
Server version: 10.1.34-MariaDB
The text was updated successfully, but these errors were encountered: