-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
busy buffer error after connection reset by peer #1513
Comments
Have you solved the problem? |
This is not a problem. This is regular log when your network is unstable. |
I have experienced this a lot lately too, suspecting network issues, I tried moving the client software to the same server as the mysql server and accessing it via 127.0.0.1, which logically should be unhampered by network issues, or at least external ones, however the issue persists. It does seem to be connected to leaving the db connection open for large queries - when closing and opening a new connection more frequently, the issue does not seem to appear. Driver: |
There should be a method to prove the "network issue" actually. |
Of course, configuration issue also cause busy buffer log. The first issue reporter reported "... read: connection reset by peer" log. Don't you see any?
How frequently? Did you read the README, at least "Important Settings" section, before reporting issue here? https://github.com/go-sql-driver/mysql?tab=readme-ov-file#important-settings |
That's a nice idea! But |
I close this issue because no one report complete step to reproduce. |
Issue description
I was running a heavy query that was fetching ~10000 rows, each containing some small fields and a large (~10kb) blob.
AMS-IX is unstable today, so network is flaky all around. This code usually works well, but today it's logged the output below multiple times.
Error log
and my call returned
invalid connection
.Configuration
Driver version (or git SHA):
github.com/go-sql-driver/mysql v1.7.1
Go version:
go version go1.21.4 linux/amd64
Server version:
10.6.12-0ubuntu0.22.04.1
Server OS: Ubuntu 22.04.3 (jammy)
The text was updated successfully, but these errors were encountered: