Ghostferry current ignores statement based replication events, which may cause data corruption if binlog_format and binlog_row_image is set temporarily to the wrong value
まだ誰も着手していません。
評価
調査の方向性
Start by tracing Ghostferry's binlog event handling and reviewing the documentation near the explanation of why binlog_format must be ROW. Examine how statement-based events and InlineVerifier behave, including the pt-heartbeat example. Done means the behavior is documented and, if feasible, unsafe events cause a cautious error without incorrectly rejecting supported cases.
索引モデルが issue の本文から書いたものです。
説明
binlog_format and binlog_row_image are session variables, which could cause certain data mutating events to be dropped by Ghostferry as it currently doesn't process events. An example program that alters binlog_format on its session is pt-heartbeat.
This is an "user-error" type problem. That said, the problem may cause data corruption that is invisible to the user, which is not acceptable. At the minimum, we need to update the documentations about such an occurrence near where we mention why binlog_format needs to be set to ROW. If users are running with the InlineVerifier, there's a chance that these events will be caught by the verifier, but I don't think it is guaranteed.
Ideally, Ghostferry should know this is wrong and error out if it observes such an event. That said, we may need to exclude some SBR entries like pt-heartbeat, or tell users to ignore those schemas/tables all together. These problems could be tricky to resolve. That said, throwing an error due to any of these events would be a cautious first step.
- 主要言語
- Go
- スター
- 858
- フォーク
- 77
- 平均マージ
- 10日 4時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Shopify/ghostferry のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
Shopify/ghostferry#471 · コメント 1 件 ·
-
Trouble with virtual generated columns対応中かも @driv3r が 222 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
Shopify/ghostferry#338 · コメント 7 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
Shopify/ghostferry#332 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Shopify/ghostferry#318 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Shopify/ghostferry#306 ·
Shopify/ghostferry の issue をすべて見る
似ている issue
-
[Bug]: gate 缺失オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
Generated cask uses deprecated `postflight` stanza; Homebrew 7 warns on every command対応中かも @k4kratik が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
sachincool/cruft#4 ·
-
help wanted kind/good-first-issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
knative/func#4191 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
VictoriaMetrics/VictoriaLogs#1965 ·
メンテナーはふだん 1 日以内に返信
-
kind/bug sig/ui
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
kubermatic/dashboard#8540 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信