TiDB Error: Connection Reset by Peer

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb报错 connection reset by peer

| username: GreenGuan

May I ask why TiDB reports this error during concurrent inserts, and the program reports “gone away”?

[conn.go:1077] [“read packet failed, close this connection”] [conn=11480607] [error=“read tcp xxxx:4000->xxxx:58781: read: connection reset by peer”]

| username: 啦啦啦啦啦 | Original post link

The “connection is reset by peer” issue is generally not caused by TiDB disconnecting, but rather by a component on the link actively cutting off the connection. Check if it might be caused by load balancing. You can refer to similar posts:

https://asktug.com/t/topic/182953

| username: HACK | Original post link

It should be that the upper layer load corresponding to the TiDB server has encountered an issue. You can check the address mentioned in your error message:
[error=“read tcp xxxx:4000->xxxx:58781: read: connection reset by peer”]

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.