tidb 报错日志一直报 [terror.go:315] ["encountered error"]

Bug 反馈
清晰准确地描述您发现的问题,提供任何可能复现问题的步骤有助于研发同学及时处理问题
【 TiDB 版本】v6.5.10
【 Bug 的影响】 业务放一直会有 bad conn 的报错
[2024/08/21 07:19:44.833 +00:00] [ERROR] [terror.go:315] [“encountered error”] [error=“close tcp 10.57.159.157:4000->10.98.5.125:37126: use of closed network connection”] [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:315\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:661”]
[2024/08/21 07:19:54.833 +00:00] [ERROR] [terror.go:315] [“encountered error”] [error=“close tcp 10.57.159.157:4000->10.98.5.125:37252: use of closed network connection”] [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:315\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:661”]
[2024/08/21 07:20:04.833 +00:00] [ERROR] [terror.go:315] [“encountered error”] [error=“close tcp 10.57.159.157:4000->10.98.5.125:37384: use of closed network connection”] [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:315\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:661”]

业务和 tidb 之间有负载均衡吗? 可以试试直连tidb 会不会有报错

是不是用tiproxy了,配置check port了嘛?
server tidb-1 10.12.141.118:4000 check port 10080 send-proxy check inter 2000 rise 2 fall 3

检查一下前端你们的 proxy 或者让业务直连 tidb 测试一下

问题应该是 业务跳过 proxy ,直连 tidb 应该是 proxy 的问题