暂无图片
分享
刘洋
2019-04-18
多路径复制,show processlist 显示错误

数据库版本5.7.23,环境是双主(两边配置参数相同,除了自增参数),配置参数如下:

gtid-mode=on

enforce-gtid-consistency=on

log_bin=on

auto_increment_increment  = 2

auto_increment_offset    = 1  

master_info_repository=table

relay_log_info_repository=table

relay_log_recovery=on

slave_preserve_commit_order=on

slave_parallel_type=logical_clock


mysql> show variables like 'slave_parallel%';

+------------------------+---------------+

| Variable_name          | Value         |

+------------------------+---------------+

| slave_parallel_type    | LOGICAL_CLOCK |

| slave_parallel_workers | 2             |

+------------------------+---------------+

同步也没有任何错误,但是show processlist时候发现线程不对。

mysql> show processlist;

+----+-------------+---------------------+------+------------------+------+---------------------------------------------------------------+------------------+

| Id | User        | Host                | db   | Command          | Time | State                                                         | Info             |

+----+-------------+---------------------+------+------------------+------+---------------------------------------------------------------+------------------+

|  1 | system user |                     | NULL | Connect          |  825 | Slave has read all relay log; waiting for more updates        | NULL             |

|  2 | system user |                     | NULL | Connect          | 2264 | Waiting for master to send event                              | NULL             |

|  4 | liu         | 192.168.80.30:43477 | NULL | Binlog Dump GTID | 2214 | Master has sent all binlog to slave; waiting for more updates | NULL             |

|  8 | root        | localhost           | NULL | Query            |    0 | starting                                                      | show processlist |

+----+-------------+---------------------+------+------------------+------+---------------------------------------------------------------+------------------+


收藏
分享
1条回答
默认
最新
刘洋
问题已关闭: 问题已经得到解决
暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏