Read semi-sync reply magic number error
来源:互联网 发布:移动办公软件有哪些 编辑:程序博客网 时间:2024/06/05 06:30
问题描述
MySQL 5.7.19 开启半同步后, 主库,从库并无压力的情况下,复制异常慢. 连简单的create table 命令都要等上一会。但关闭半同步后,复制恢复正常。
Master日志中有如下错误:
2017-08-10T08:52:06.526471Z 0 [ERROR] Read semi-sync reply magic number error
2017-08-10T08:52:06.527582Z 0 [ERROR] /mysql/bin/mysqld: Got timeout reading communication packets
2017-08-10T08:52:11.519135Z 0 [ERROR] /mysql/bin/mysqld: Got an error reading communication packets
2017-08-10T08:52:11.522714Z 1437 [Note] While initializing dump thread for slave with UUID <4f5e10be-7d7e-11e7-b9de-fa1
63ee505c4>, found a zombie dump thread with the same UUID. Master is killing the zombie dump thread(796).
2017-08-10T08:52:11.522764Z 1437 [Note] Start binlog_dump to master_thread_id(1437) slave_server(2073316), pos(mysql-bi
n.000006, 1356)
2017-08-10T08:52:11.522796Z 796 [Note] Stop semi-sync binlog_dump to slave (server_id: 2073316)
2017-08-10T08:52:12.520237Z 1437 [Note] Start semi-sync binlog_dump to slave (server_id: 2073316), pos(mysql-bin.000006
, 1356)
2017-08-10T08:59:32.775318Z 0 [ERROR] /mysql/bin/mysqld: Got an error reading communication packets
2017-08-10T08:59:32.779383Z 1590 [Note] While initializing dump thread for slave with UUID <4f5e10be-7d7e-11e7-b9de-fa1
63ee505c4>, found a zombie dump thread with the same UUID. Master is killing the zombie dump thread(1437).
2017-08-10T08:59:32.779435Z 1590 [Note] Start binlog_dump to master_thread_id(1590) slave_server(2073316), pos(mysql-bi
n.000006, 1356)
经查与slave_compressed_protocol参数有关。
解决办法:
STOP SLAVE;SET GLOBAL slave_compressed_protocol=0; START SLAVE;
参考文档:
https://bugs.mysql.com/bug.php?id=85382
- Read semi-sync reply magic number error
- mysql semi-sync浅谈
- magic number
- magic number
- Magic number
- magic number
- iOS Error returned in reply
- MySQL 5.5中使用semi-sync replciation
- mysql5.5 semi-sync安装维护
- MySQL半同步Semi-sync原理介绍
- mysql5.5 semi-sync安装维护
- mysql semi-sync(半同步复制)
- mysql5.5 semi-sync replication 安装维护
- R-18 Semi-Prime Number
- Semi-prime H-number(poj3292)
- 什么是magic number
- zoj 3622 Magic Number
- DP:magic number
- 为什么我不使用Kubernetes的Ingress
- js, jq执行 focus后focusout和click事件冲突
- 循环从键盘输入
- iOS探索--面向对象三大特征封装、继承、多态
- [js]js中函数的执行过程图解
- Read semi-sync reply magic number error
- 到C++11中的智能指针
- Vijos[1983]NOIP2015Day2T3 运输计划 transport LCA
- perl笔记(三)-正则表达式
- Redis指令简单操作
- HDU 6105 Gameia(2017多校第6场1010)
- 16 个 Linux 服务器监控命令和watch
- Java+opencv3.2.0之图像尺寸调整
- itk中的图像分割算法(二)