plugin-barman-cloud icon indicating copy to clipboard operation
plugin-barman-cloud copied to clipboard

fix: restore WAL from replica source during designated primary promotion

Open leonardoce opened this issue 5 months ago • 0 comments

During a replica cluster failover, the designated primary could incorrectly attempt to restore WALs from its own object store instead of the replica source, causing recovery to fail. This happened because the previous logic relied on IsReplica() returning true, but that flag can already be false while PostgreSQL is still in recovery and needs WALs from the source cluster.

leonardoce avatar Jun 16 '26 15:06 leonardoce