From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
Cc: | Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, andres(at)anarazel(dot)de, zxwsbg12138(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #17744: Fail Assert while recoverying from pg_basebackup |
Date: | 2023-02-25 03:39:11 |
Message-ID: | Y/mC37cgUSg7m0hJ@paquier.xyz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Sat, Feb 25, 2023 at 08:56:18AM +1300, Thomas Munro wrote:
> Thanks. I've been thinking about how to make a deterministic test
> script to study this and possible fixes, too.
I can send you what I have if you are interested, but I would need to
rewrite it a bit as it is integrated with my local scripts. If you
wish me to test something, just ping me.
> Unfortunately I came
> down with a nasty cold and stopped computing for a couple of days, so
> sorry for the slow response on this thread, but I seem to have
> rebooted now. Looking.
Ouch, take care. This has been around for some time, so a couple of
weeks won't matter much. There is still a lot of time until the next
minor release.
By the way, I think that I have put my finger on something.. The
startup process happily sets InArchiveRecovery to true after
read_backup_label() if finding one, with a comment telling that
archive recovery is requested, still ArchiveRecoveryRequested is never
set to true unless there is a recovery.signal or a standby.signal.
The configuration of this thread fails on that:
@@ -619,6 +619,8 @@ InitWalRecovery(ControlFileData *ControlFile, bool *wasShutdown_ptr,
* file, we know how far we need to replay to reach consistency. Enter
* archive recovery directly.
*/
+ if (!ArchiveRecoveryRequested)
+ elog(PANIC, "ArchiveRecoveryRequested not set with backup_label");
One of the tests of 010_pg_basebackup.pl with tablespace maps fails on
that as well, still there does not seem to be a lot of coverage for
self-contained backups..
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2023-02-25 13:37:39 | Re: two bugs |
Previous Message | zhxpgh | 2023-02-25 01:43:22 | two bugs |