You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"cnpg status" reports WAL archiving in "Starting up" on a replica cluster #1604
I set up a replica cluster that is replicating via just object store from another cluster and is archiving to a local S3 bucket. WAL archiving is fine, including querying the pg_stat_archiver view, but the status command of the cnpg plugin reports:
Continuous Backup status
First Point of Recoverability: 2023-02-28T18:03:54Z
Working WAL archiving: Starting Up
WALs waiting to be archived: 0
Last Archived WAL: -
Last Failed WAL: -
Activity
gbartolini commentedon Mar 1, 2023
The issue is in the
fillStatusFromPrimarymethod inpkg/management/postgres/probes.go, specifically when we call:pg_current_wal_lsn() can be replaced on a standby by pg_last_wal_replay_lsn().
fix: fill probe archiver status on replicas too
fix: properly fill the status of the archiver on replicas (#1666)
fix: properly fill the status of the archiver on replicas (#1666)
fix: properly fill the status of the archiver on replicas (#1666)