[FAQ] connection was bad

[问题澄清]

[err="connection was bad"]
level=error msg="write tcp 10.177.8.56:4000->10.42.158.6:54846: write: connection reset by peer
[error] write tcp 192.168.101.2:4000->192.168.101.54:39486: write: broken pipe

[原因分析]

tidb 日志出现 connection was bad、connection reset by peer、broken pipe 这类报错表示客户端连接异常中断,客户端的报错可能是 MySQL server has gone away 或 killed。

[解决方案]

排查客户端具体报错信息