running gh-ost on mysql 8.0.32 gets erros

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

维护者通常 10 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

首先,在 MySQL 8.0.32 上使用 gh-ost 1.1.5 复现报告的列类型变更,并捕获完整日志。阅读 binlogsyncer.go 和 binlogstreamer.go 中引用的关闭路径,尤其关注连接和同步关闭消息附近的代码。完成的标准是迁移能够在没有错误的错误日志的情况下完成,并且有一个覆盖所观察行为的回归测试。

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

描述

 When change a column data type, can finish the job but get error log.
 Thanks for your help.

gh-ost version:1.1.5
mysql version:8.0.32

Error logs as following:
Copy: 1300000/1300000 100.0%; Applied: 0; Backlog: 0/1000; Time: 1m0s(total), 53s(copy); streamer: binlog.000007:81508511; Lag: 0.23s, HeartbeatLag: 0.11s, State: migrating; ETA: due
2023-05-04 16:06:05 INFO Tables renamed
2023-05-04 16:06:05 INFO Lock & rename duration: 4.449586975s. During this time, queries on user were blocked
[2023/05/04 16:06:05] [info] binlogsyncer.go:164 syncer is closing...
[2023/05/04 16:06:05] [error] binlogsyncer.go:631 connection was bad
2023-05-04 16:06:05 INFO Closed streamer connection. err=
[2023/05/04 16:06:05] [error] binlogstreamer.go:77 close sync with err: Sync was closed
[2023/05/04 16:06:05] [info] binlogsyncer.go:179 syncer is closed
2023-05-04 16:06:05 INFO Dropping table mytest._user_ghc
2023-05-04 16:06:06 INFO Table dropped

主要语言
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 摘要。