Skip to content
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

Closed
Jille opened this issue Nov 23, 2023 · 7 comments
Closed

busy buffer error after connection reset by peer #1513

Jille opened this issue Nov 23, 2023 · 7 comments

Comments

@Jille
Copy link

Jille commented Nov 23, 2023

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

[mysql] 2023/11/23 10:45:34 packets.go:73: read tcp 10.0.1.108:39036->159.69.87.179:3306: read: connection reset by peer
[mysql] 2023/11/23 10:45:34 packets.go:427: busy buffer

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)

@sylar8023baby
Copy link

Have you solved the problem?

@methane
Copy link
Member

methane commented Feb 20, 2024

This is not a problem. This is regular log when your network is unstable.

@askeuhd
Copy link

askeuhd commented Mar 3, 2024

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: github.com/go-sql-driver/mysql v1.7.1
Go: go version go1.22.0 linux/amd64
Server OS: Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-97-generic x86_64)
MySQL server: mariadb from 11.3.2-MariaDB, client 15.2 for debian-linux-gnu (x86_64)

@sylar8023baby
Copy link

There should be a method to prove the "network issue" actually.

@methane
Copy link
Member

methane commented Mar 4, 2024

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.

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?

when closing and opening a new connection more frequently, the issue does not seem to appear.

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

@methane
Copy link
Member

methane commented Mar 4, 2024

There should be a method to prove the "network issue" actually.

That's a nice idea! But HowToStopRussia() is more nice!

@methane
Copy link
Member

methane commented Mar 4, 2024

I close this issue because no one report complete step to reproduce.
This thread sends me annoying notification mail to me.

@methane methane closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants