binlog syncer closes unexpectedly
維護者通常 10 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從記錄的位置 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
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/gh-ost 的其他 Issue
-
`--resume` without `--execute` drops the ghost table it correctly skipped altering可能已有人在做 @ajm188 於 56 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 86/100
維護者通常 10 天內回覆
-
[Suggestion] Apply simple validation to alter command可能已有人在做 @drkemp187 於 106 天前認領。 未關閉enhancement good first issue
難度 2/5 1-3 小時 新手友好度 64/100
維護者通常 10 天內回覆
-
Migration hangs when --attempt-instant-ddl succeeds可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 4/5 3-5 天 新手友好度 30/100
維護者通常 10 天內回覆
-
難度 4/5 3-5 天 新手友好度 42/100
維護者通常 10 天內回覆
-
Atomic cut-over always fails on MySQL 9.1+: information_schema.processlist errors out (3854) while another session runs a non-BMP utf8mb4 statement可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 4/5 3-5 天 新手友好度 52/100
維護者通常 10 天內回覆
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
oxc-project/tsgolint#1362 ·
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 82/100
hashicorp/terraform-provider-google#30703 ·
維護者通常 1 天內回覆
-
UpdateSchema.BuildUpdates should select newly added schemas with schema-id: -1可能已有人在做 @nisan1101 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 82/100
apache/iceberg-go#2586 · 1 則留言 ·
維護者通常 2 天內回覆
-
FR: update golang.org/x/sys to v0.50.0可能已有人在做 @wrenix 今天認領。 未關閉fr needs-triage
難度 2/5 1 小時以內 新手友好度 62/100
維護者通常 1 天內回覆
-
[Docs] Four internal links return 404 (Models concept, Contributing to Docs, Providers reference)可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
meshery/meshery#23520 · 1 則留言 ·
維護者通常 1 天內回覆