From: Nathan Bossart <nathandbossart@gmail.com>
To: Zhao Rui <875941708@qq.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: Fix primary crash continually with invalid checkpoint after promote
Date: Tue, 26 Apr 2022 11:16:29 -0700
Message-ID: <20220426181629.GA3002456@nathanxps13> (raw)
In-Reply-To: <tencent_1D53DA1DFA2F5EF11B0D6B9DD24FF8BD4A08@qq.com>
References: <tencent_1D53DA1DFA2F5EF11B0D6B9DD24FF8BD4A08@qq.com>
On Tue, Apr 26, 2022 at 03:16:13PM +0800, Zhao Rui wrote:
> In function CreateRestartPoint, control file is updated and old wals are removed. But in some situations, control file is not updated, old wals are still removed. Thus produces an invalid checkpoint with nonexistent wal. Crucial log: "invalid primary checkpoint record", "could not locate a valid checkpoint record".
I think this is the same issue tracked here: [0].
[0] https://postgr.es/m/20220316.102444.2193181487576617583.horikyota.ntt%40gmail.com
--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: nathandbossart@gmail.com, 875941708@qq.com, pgsql-hackers@postgresql.org, pgsql-bugs@lists.postgresql.org
Subject: Re: Fix primary crash continually with invalid checkpoint after promote
In-Reply-To: <20220426181629.GA3002456@nathanxps13>
* 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