From: Lahnov, Igor <Igor.Lahnov@nexign.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: Timonin, Alexey <Alexey.Timonin@nexign.com>
Cc: Dmitriyev, Andrey <Andrey.Dmitriyev@nexign.com>
Subject: Streaming wal from primiry terminating
Date: Wed, 28 Sep 2022 08:50:12 +0000
Message-ID: <edfbeb1160a44922914ee016d94fea4c@nexign.com> (raw)
Hi,
After failover all stand by nodes could not start streaming wal recovery.
Streaming recovery start from 1473/A5000000, but standby start at 1473/A5FFEE08, this seems to be the problem.
What can we do in this case to restore?
Is it possible to shift wal streaming recovery point on primary?
Can checkpoint on primary help in this situation?
2022-09-26 14:08:23.289 [3747796] LOG: consistent recovery state reached at 1473/A5FFEE08
2022-09-26 14:08:23.289 [3747796] LOG: invalid record length at 1473/A5FFEE08: wanted 24, got 0
2022-09-26 14:08:23.290 [3747793] LOG: database system is ready to accept read-only connections
2022-09-26 14:08:23.292 [3747867] LOG: starting bgworker pgsentinel
2022-09-26 14:08:23.672 [3747868] LOG: started streaming WAL from primary at 1473/A5000000 on timeline 18
2022-09-26 14:08:24.363 [3747796] LOG: invalid record length at 1473/A5FFEE08: wanted 24, got 0
2022-09-26 14:08:24.366 [3747868] FATAL: terminating walreceiver process due to administrator command
2022-09-26 14:08:24.366 [3747796] LOG: invalid record length at 1473/A5FFEE08: wanted 24, got 0
2022-09-26 14:08:24.366 [3747796] LOG: invalid record length at 1473/A5FFEE08: wanted 24, got 0
2022-09-26 14:08:24.366 [3747796] LOG: invalid record length at 1473/A5FFEE08: wanted 24, got 0
...
...
...
2022-09-26 14:12:24.055 [3747796] LOG: invalid record length at 1473/A5FFEE08: wanted 24, got 0
2022-09-26 14:12:29.060 [3747796] LOG: invalid record length at 1473/A5FFEE08: wanted 24, got 0
2022-09-26 14:12:34.064 [3747796] LOG: invalid record length at 1473/A5FFEE08: wanted 24, got 0
2022-09-26 14:12:39.068 [3747796] LOG: invalid record length at 1473/A5FFEE08: wanted 24, got 0
2022-09-26 14:12:39.910 [3747793] LOG: received fast shutdown request
2022-09-26 14:12:39.911 [3747793] LOG: aborting any active transactions
2022-09-26 14:12:39.911 [3747867] LOG: bgworker pgsentinel signal: processed SIGTERM
2022-09-26 14:12:39.914 [3747797] LOG: shutting down
2022-09-26 14:12:39.922 [3747793] LOG: database system is shut down
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: Igor.Lahnov@nexign.com, Alexey.Timonin@nexign.com, Andrey.Dmitriyev@nexign.com
Subject: Re: Streaming wal from primiry terminating
In-Reply-To: <edfbeb1160a44922914ee016d94fea4c@nexign.com>
References: <edfbeb1160a44922914ee016d94fea4c@nexign.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox