Skip to content

fix(walrestore): use timeline-aware barman-cloud end-of-WAL markers#993

Open
ardentperf wants to merge 1 commit into
cloudnative-pg:mainfrom
ardentperf:pr-fix-end-of-wal
Open

fix(walrestore): use timeline-aware barman-cloud end-of-WAL markers#993
ardentperf wants to merge 1 commit into
cloudnative-pg:mainfrom
ardentperf:pr-fix-end-of-wal

Conversation

@ardentperf

Copy link
Copy Markdown

A global end-of-WAL marker can be set by a parent-timeline prefetch miss and then consumed by a child-timeline restore request. In snapshot-restored replica flows, that can cause PostgreSQL to miss valid child-timeline WAL and replay wrong parent-timeline bytes. Reference cloudnative-pg/barman-cloud#276

Update wal-restore to use the new barman-cloud restorer APIs:

  • ConsumeEndOfWALStreamForWAL
  • SetEndOfWALStreamFromResults

Depends on cloudnative-pg/barman-cloud#277

Update `wal-restore` to use the new `barman-cloud` restorer APIs,
resolving a bug that can cause replicas to enter a broken state that
CNPG cant recover from. Local marker naming, WAL timeline parsing, and
restore-result filtering policy lives in
`github.com/cloudnative-pg/barman-cloud/pkg/restorer`. depends on
cloudnative-pg/barman-cloud#277

Signed-off-by: Jeremy Schneider <schneider@ardentperf.com>
@ardentperf ardentperf requested a review from a team as a code owner July 6, 2026 16:15
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. bug Something isn't working go Pull requests that update go code labels Jul 6, 2026
@jmealo

jmealo commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

👍 LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working go Pull requests that update go code size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants