binlog syncer closes unexpectedly

未关闭
#1,397 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 10 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
go, mysql
领域
database

调研方向

从记录的位置 binlogstreamer.go:77 和 binlogsyncer.go:180/864 开始,然后使用提供的 gh-ost 命令和版本详细信息重现故障。追踪 binlog syncer 关闭的原因,以及 ghc 表缺失的原因;完成的标准是确定一个可复现的原因,并记录经过验证的修复或变通方案。

由索引模型根据 Issue 内容生成。

描述

I have an issue when running ghost command bynlog sincer just stops unexpectedly and ghost fails.

I can replicate issue on v1.1.5 and v1.1.6

Output on v1.1.5:
[2024/03/12 08:32:01] [error] binlogstreamer.go:77 close sync with err: sync is been closing...
[2024/03/12 08:32:01] [info] binlogsyncer.go:179 syncer is closed
2024-03-12 08:32:01 ERROR Error 1146: Table 'xxxxx_ghc' doesn't exist

Done

output on v1.1.6:
[2024/03/13 10:35:16] [info] binlogsyncer.go:180 syncer is closing...
[2024/03/13 10:35:16] [info] binlogsyncer.go:864 kill last connection id 1501
[2024/03/13 10:35:16] [info] binlogsyncer.go:210 syncer is closed
2024-03-13 10:35:16 ERROR Error 1146: Table 'xxxxxx_ghc' doesn't exist

this is command I run:
/usr/bin/gh-ost
--allow-on-master
--assume-master-host=${DB_HOST}
--host=${DB_HOST}
--database=xxx
--port=3306
--user=${DB_USERNAME}
--max-lag-millis=1500
--ssl
--ssl-allow-insecure
--exact-rowcount
--concurrent-rowcount
--password=${DB_PASSWORD}
--table=xxx
--alter="xxx"
--assume-rbr
--default-retries=120
--cut-over=default
--postpone-cut-over-flag-file postpone.txt
—-verbose
—-cunk-size 10000
--dml-batch-size 100
--execute
| tee -a gh-ost_run.out

Can you help me how do I troubleshoot this issue?

主要语言
Go
星标
13.6k
派生
1.4k
平均合并
9 天 19 小时
30 天内合并 PR
1

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/gh-ost 的其他 Issue

查看 github/gh-ost 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。