Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb 报错 [ERROR] [terror.go:307] [“encountered error”] [error=“write tcp 10.18.13.226:4000->10.18.13.224:28952: write: connection reset by peer”]
【TiDB Environment】Test environment
【TiDB Version】5.4.1
【Encountered Problem】
TiDB error [ERROR] [terror.go:307] [“encountered error”] [error=“write tcp 10.18.13.226:4000->10.18.13.224:28952: write: connection reset by peer”]
【Reproduction Path】What operations were performed to cause the problem
【Problem Phenomenon and Impact】
HAProxy is configured with IP pass-through, 10.18.13.224 is the HAProxy IP
[2022/10/30 17:53:12.640 +08:00] [ERROR] [terror.go:307] [“encountered error”] [error=“write tcp 10.18.13.226:4000->10.18.13.224:28952: write: connection reset by peer”] [stack=“github.com/pingcap/tidb/parser/terror.Log\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/parser/terror/terror.go:307\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:516”]
[2022/10/30 17:53:14.643 +08:00] [ERROR] [terror.go:307] [“encountered error”] [error=“write tcp 10.18.13.226:4000->10.18.13.224:28955: write: connection reset by peer”] [stack=“github.com/pingcap/tidb/parser/terror.Log\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/parser/terror/terror.go:307\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:516”]
[2022/10/30 17:53:16.646 +08:00] [ERROR] [terror.go:307] [“encountered error”] [error=“write tcp 10.18.13.226:4000->10.18.13.224:28959: write: connection reset by peer”] [stack=“github.com/pingcap/tidb/parser/terror.Log\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/parser/terror/terror.go:307\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:516”]
[2022/10/30 17:53:18.649 +08:00] [ERROR] [terror.go:307] [“encountered error”] [error=“write tcp 10.18.13.226:4000->10.18.13.224:28962: write: connection reset by peer”] [stack=“github.com/pingcap/tidb/parser/terror.Log\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/parser/terror/terror.go:307\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:516”]
[2022/10/30 17:53:20.651 +08:00] [ERROR] [terror.go:307] [“encountered error”] [error=“write tcp 10.18.13.226:4000->10.18.13.224:28965: write: connection reset by peer”] [stack=“github.com/pingcap/tidb/parser/terror.Log\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/parser/terror/terror.go:307\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:516”]
[2022/10/30 17:53:22.655 +08:00] [ERROR] [terror.go:307] [“encountered error”] [error=“write tcp 10.18.13.226:4000->10.18.13.224:28967: write: connection reset by peer”] [stack=“github.com/pingcap/tidb/parser/terror.Log\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/parser/terror/terror.go:307\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:516”]