【 使用环境 】生产环境
【 OB or 其他组件 】obbinlog
【 使用版本 】obbinlog-ce-4.2.3-200000012025021315.el7
【问题描述】执行show master status 一直报ERROR 2013 (HY000): Lost connection to MySQL server during query 错误, 执行其他SQL语句都正常,凡是binlog 相关的语句都报Lost connection 错误
【复现路径】问题出现前后相关操作
ODP 版本:4.3.2.0-42
binlog 日志中可以看到连接一直被关闭,截取部分日志如下:
[2025-03-13 16:54:32.551522] [info] cmd_processor.cpp(58): Received query [show binlog server for tenant `sgoceanbase`.`sg`] on connection [OBM][binlog_user@sg,,]192.168.2.112:2983-192.168.2.111:49340/7
[2025-03-13 16:54:32.551608] [info] cmd_processor.cpp(77): Successfully parsed SQL [type: 28], [show binlog server for tenant `sgoceanbase`.`sg`]
[2025-03-13 16:54:32.583171] [info] event_dispatch.cpp(117): Succeeded do_cmd on connection [c6ee79f1799c5445b7732aabdbb661][OBM][binlog_user@sg,,]192.168.2.112:2983-192.168.2.111:49340/7
[2025-03-13 16:54:32.624225] [info] connection.cpp(139): Client [[OBM][binlog_user@sg,,]192.168.2.112:2983-192.168.2.111:49340/7] has been closed.
[2025-03-13 16:54:32.624324] [info] connection.cpp(89): Closed connection [OBM][binlog_user@sg,,]192.168.2.112:2983-192.168.2.111:49340/7
1、在ODP所在的机器上,直连binlog service ip,多次执行 show binlog server for tenant $cluster_name .$tenant_name 看看,替换为真实的集群和租户名 看看是否稳定执行
2、发一下具体ODP的版本号,./obproxy -V看一下
3、ob的版本发一下 obproxy的版本号
4、下面的日志发一下
binlog_instance.log
libobcdc.log
5、看一下binlog service 服务器的负载
top -H