binlog syncer closes unexpectedly

オープン
#1,397 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 10 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/gh-ost のほかの issue

github/gh-ost の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。