Re: standby recovery fails (tablespace related) (tentative patch and discussion) - Mailing list pgsql-hackers

From Paul Guo
Subject Re: standby recovery fails (tablespace related) (tentative patch and discussion)
Date
Msg-id CAEET0ZFNE2-NQbaw70=EiuOw3JXSSQ_nkbbcXP91pY81vNE1zA@mail.gmail.com
Whole thread Raw
In response to Re: standby recovery fails (tablespace related) (tentative patch and discussion)  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: standby recovery fails (tablespace related) (tentative patch and discussion)  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers


On Mon, Jul 8, 2019 at 11:16 AM Thomas Munro <thomas.munro@gmail.com> wrote:
On Wed, Jun 19, 2019 at 7:22 PM Paul Guo <pguo@pivotal.io> wrote:
> I updated the patch to v3. In this version, we skip the error if copydir fails due to missing src/dst directory,
> but to make sure the ignoring is legal, I add a simple log/forget mechanism (Using List) similar to the xlog invalid page
> checking mechanism. Two tap tests are included. One is actually from a previous patch by Kyotaro in this
> email thread and another is added by me. In addition, dbase_desc() is fixed to make the message accurate.

Hello Paul,

FYI t/011_crash_recovery.pl is failing consistently on Travis CI with
this patch applied:

https://urldefense.proofpoint.com/v2/url?u=https-3A__travis-2Dci.org_postgresql-2Dcfbot_postgresql_builds_555368907&d=DwIBaQ&c=lnl9vOaLMzsy2niBC8-h_K-7QJuNJEsFrzdndhuJ3Sw&r=Usi0ex6Ch92MsB5QQDgYFw&m=ABylo8AVfubiiYVbCBSgmNnHEMJhMqGXx5c0hkug7Vw&s=5h4m_JhrZwZqsRsu1CHCD3W2eBl14mT8jWLFsj2-bJ4&e=



This failure is because the previous v3 patch does not align with a recent patch

commit 660a2b19038b2f6b9f6bcb2c3297a47d5e3557a8                                
Author: Noah Misch <noah@leadboat.com>                                          
Date:   Fri Jun 21 20:34:23 2019 -0700                                                   
    Consolidate methods for translating a Perl path to a Windows path.          

My patch uses TestLib::real_dir which is now replaced with TestLib::perl2host in the above commit.

I've updated the patch to v4 to make my code align. Now the test passes in my local environment.

Please see the attached v4 patch.

Thanks.
Attachment

pgsql-hackers by date:

Previous
From: Richard Guo
Date:
Subject: Re: [HACKERS] WIP: Aggregation push-down
Next
From: Thomas Munro
Date:
Subject: Re: Adding SMGR discriminator to buffer tags