Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Timeline-blind end-of-WAL marker can poison WAL restore after timeline switch

クローズ
#276 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@ardentperf がすでに取り組んでいます。

2026年7月6日 から。

  • #277 @ardentperf による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
go, postgresql
領域
databases

調査の方向性

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

環境構築

はじめの一歩

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

cloudnative-pg/barman-cloud のほかの issue

cloudnative-pg/barman-cloud の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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