-
Notifications
You must be signed in to change notification settings - Fork 997
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
close sync with err: ERROR 4031 #963
Comments
Any related entries in the MySQL logs? (with |
What settings have you set for |
mysql param wait_timeout =3600 interactive_timeout=3000 |
If your application can consume binlog within 3000 seconds, the connection will not be killed by MySQL server. Please check your logic if it's stuck. |
Is the gap between binlog events always less than the timeout? |
My current solution is to use Supervisor to manage the process. When the program encounters an error, it will exit with code 1, and then Supervisor will automatically restart the program to achieve the purpose of continuously consuming the binlog. However, I can't find the reason for the ERROR 4031 (HY000) error. |
go version 1.22.10
mysql version 8.0.32
go-mysql 1.9.1
When using the canal method to parse the binlog in real time, the following error occurs intermittently: "binlogstreamer.go:78 close sync with err: ERROR 4031 (HY000): The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior." I wonder if it is necessary to set some additional parameters when connecting to MySQL?
The text was updated successfully, but these errors were encountered: