GreatSQL社区

搜索

[已解决] 用myshell删除仲裁节点时报错

629 4 2024-5-27 15:06
c.remove_instance("192.168.200.136:3306")
The instance will be removed from the InnoDB Cluster.

* Waiting for instance '192.168.200.136:3306' to synchronize with the primary...
** Transactions replicated  ###################################################=   98%
ERROR: The instance '192.168.200.136:3306' was unable to catch up with cluster transactions. There might be too many transactions to apply or some replication error. In the former case, you can retry the operation (using a higher timeout value by setting the global shell option 'dba.gtidWaitTimeout'). In the later case, analyze and fix any replication error. You can also choose to skip this error using the 'force: true' option, but it might leave the instance in an inconsistent state and lead to errors if you want to reuse it.
ERROR: MYSQLSH 51141: Replication thread not in expected state
Traceback (most recent call last):
  File "<string>", line 1, in <module>
mysqlsh.Error: Shell Error (51141): Cluster.remove_instance: Replication thread not in expected state

在删除仲裁节点时,是不是要特殊的语法。

全部回复(4)
yejr 2024-5-27 15:17:12
正常情况下是没问题的,你看下错误日志里有没有什么关键信息
reddey 2024-5-27 15:34:14
本帖最后由 15167759230 于 2024-5-27 15:40 编辑
yejr 发表于 2024-5-27 15:17
正常情况下是没问题的,你看下错误日志里有没有什么关键信息

这个是日志文件,补充说明一下,数据库主机为192.168.200.136,由于GLIBC版本无法安装社区的greatsql myshell工具,我新建一台192.168.200.34的主机安装了greatsql myshell工具。从日志文件看,是不是我要设置--super-read-only option才行。

mysqld.rar

28.68 KB, 下载次数: 1, 下载积分: 金币 -1

一个学艺不精的国产数据库爱好者
yejr 2024-5-27 16:05:11
15167759230 发表于 2024-5-27 15:34
这个是日志文件,补充说明一下,数据库主机为192.168.200.136,由于GLIBC版本无法安装社区的greatsql mysh ...

从日志看,最后一个mgr view changed事件是成功的

  1. 2024-05-27T07:02:28.097502Z 0 [Warning] [MY-011499] [Repl] Plugin group_replication reported: 'Members removed from the group: 192.168.200.15:3306'
  2. 2024-05-27T07:02:28.097894Z 0 [System] [MY-011503] [Repl] Plugin group_replication reported: 'Group membership changed to 192.168.200.136:3306, 192.168.200.80:3306, 192.
  3. 168.200.145:3306 on view 17156885155631775:57.'
复制代码


但后面还有其他事务写入失败,可能是你把节点设置为super-read-only=on导致的,感觉是你的mgr在部署或其他某些地方不太对导致的,可以考虑重头开始构建一个环境。
reddey 2024-5-27 16:49:23
yejr 发表于 2024-5-27 16:05
从日志看,最后一个mgr view changed事件是成功的

好的,我明白了。
一个学艺不精的国产数据库爱好者
reddey

28

主题

44

博客

837

贡献

金牌会员

Rank: 6Rank: 6

积分
1108

勤学好问(铜)写作分享(金)助人为乐(金)中肯点评(铜)解惑专家(铜)

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-9-8 10:41 , Processed in 0.022818 second(s), 18 queries , Redis On.
快速回复 返回顶部 返回列表