Timeline-blind end-of-WAL marker can poison WAL restore after timeline switch
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
pkg/restorer.WALRestorer から始め、並列 prefetch および restore リクエスト中に WAL ストリームの終端マーカーがどのように書き込まれ、消費されるかを追跡します。リンクされた WAL restore reproduction を使って timeline の切り替えを実行します。完了の条件は、ある timeline での miss が、要求された child-timeline segment の restore 処理に影響を与えないことです。
索引モデルが issue の本文から書いたものです。
説明
pkg/restorer.WALRestorer tracks end-of-WAL state with a single global spool marker named end-of-wal-stream. That marker is not scoped to the WAL timeline. This is unsafe when a restore flow uses parallel prefetch and PostgreSQL later requests WAL across a timeline switch. A prefetch miss on timeline N can set the global marker, and the next restore request on timeline N+1 can consume that marker before checking archive/spool state for the requested child-timeline segment.
A full repro is available here: https://github.com/ardentperf/bug-repro-wal-restore
The problem is not Barman core's normal behavior of returning failure when a requested WAL is unavailable. That is expected and is how PostgreSQL can move from archive restore to streaming, but it needs to be timeline scoped.
- 主要言語
- Go
- スター
- 11
- フォーク
- 30
- 平均マージ
- 2日 18時間
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudnative-pg/barman-cloud のほかの issue
-
WAL restore starts a new process for every segment対応中かも @Kobayashi-UwU が 19 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
cloudnative-pg/barman-cloud#318 ·
メンテナーはふだん 1 日以内に返信
-
Dependency Dashboardオープン
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
cloudnative-pg/barman-cloud#5 ·
メンテナーはふだん 1 日以内に返信
cloudnative-pg/barman-cloud の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
Energy flow: add an "Other" row so the consumers add up to the consumption total対応中かも @github-actions が今日担当しました。 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
evcc-io/evcc#35512 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
nebari-dev/nebi#630 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
router-for-me/CLIProxyAPI#7084 ·
メンテナーはふだん 1 日以内に返信