MariaDB binlog events differ from MySQL
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
調査の方向性
Start with the binlog_streamer entry point and the replication.TableMapEvent, replication.GenericEvent, and replication.QueryEvent handling. Compare the MariaDB ANNOTATE_ROWS_EVENT and the embedded BEGIN text with the zero log position error; done means MariaDB binlog streaming no longer panics on these events.
索引モデルが issue の本文から書いたものです。
説明
Running the binlog_streamer from MariaDB seems to be a little bit different.
an error seems to occur:
PANI[0001] tried to advance to a zero log position: mysql-bin.047756 0 string tag=source_binlog_streamer
I tracked it down to the following events:
*replication.TableMapEvent, *replication.GenericEvent, *replication.QueryEvent
Which is documented to happen when a replica is unable to understand MariaDB's protocol:
"Dummy event replacing event type X that slave cannot handle."
To me it looks like it comes from the following events:
ANNOTATE_ROWS_EVENT (https://mariadb.com/kb/en/annotate_rows_event/)
As this is what I sniffed from the traffic:
# Dummy event replacing event type 160 that slave cannot handle
and the plain text "BEGIN" which both gets shoved in the replication.QueryEvent
Further more the also state that the TABLE_MAP_EVENT is used for row-based binlog:
https://mariadb.com/kb/en/table_map_event/
Currently debugging for more data, will come with a PR that works with my current MariaDB: 10.3.28-MariaDB-1:10.3.28+maria~focal-log
- 主要言語
- 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 日以内に返信