BinlogStreamer could block forever due to unconfigurable caughtupThreshold
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with ferry.go lines 254-258 and trace the caughtupThreshold loop and IsAlmostCaughtUp behavior. Review the discussion about a configurable deadline, aborting the move, and ControlServer-triggered cutover; done means an agreed behavior is implemented without forcing a disruptive cutover by default.
索引モデルが issue の本文から書いたものです。
説明
Originally by @hkdsun:
See https://github.com/Shopify/ghostferry/blob/be4f15d/ferry.go#L254-L258
In the situation where the source database is under very heavy load, such that ghostferry is always caughtupThreshold behind on writing data to the target, we could stay in that loop for a potentially really long time.
An idea is to have the function accept a configurable deadline. Once the deadline is reached, either abort the run or force the application to stop writes on the source (i.e. forcefully initiate the cutover phase).
Comment by @shuhaowu:
I would like to add, we could also add an API to dynamically force a cutover to occur (i.e. make IsAlmostCaughtUp return true always), perhaps triggerable via the ControlServer.
Comment by @fw42:
I think I'd prefer to abort the move rather than to force the cutover, at least as the default behaviour. If the source database has so many writes that we can't catch up, that probably means that it's very active right now. Locking the source database would be very disruptive at that moment.
- 主要言語
- 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 日以内に返信