Skip to content

Commit 1044c8e

Browse files
mnencialeonardoce
andauthored
fix(walrestore): apply timeline validation before plugin WAL restore (#9849)
Move timeline history file validation to execute before any WAL restore attempt (plugin or in-tree) rather than only for in-tree restores. This prevents replicas from downloading timeline history files with timeline IDs higher than the cluster's current timeline when plugins handle WAL restore. The timeline protection added in #9650 was only applied to in-tree WAL restore, but not to plugin-based restore. This allowed the protection to be completely bypassed when using plugins, causing replicas to download future timeline history files and fail with timeline mismatch errors. Fixes the timeline protection introduced in ef73994. Signed-off-by: Marco Nenciarini <[email protected]> Signed-off-by: Leonardo Cecchi <[email protected]> Co-authored-by: Leonardo Cecchi <[email protected]>
1 parent 844b7b9 commit 1044c8e

2 files changed

Lines changed: 500 additions & 498 deletions

File tree

0 commit comments

Comments
 (0)