Re: pg_receivewal fail to streams when the partial file to write is not fully initialized present in the wal receiver directory

From: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: mahendrakar s <mahendrakarforpg(at)gmail(dot)com>, SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>, Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_receivewal fail to streams when the partial file to write is not fully initialized present in the wal receiver directory
Date: 2022-09-22 05:37:22
Message-ID: CALj2ACWKvjOO-JzYpMBpk-o_o9CeKGEqMcS=yXf-pC6M+jOkuQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Sep 22, 2022 at 10:07 AM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>
> On Thu, Sep 22, 2022 at 07:16:41AM +0530, Bharath Rupireddy wrote:
> > t/010_pg_basebackup.pl ... 134/?
> > # Failed test 'pg_basebackup reports checksum mismatch stderr
> > /(?^s:^WARNING.*checksum verification failed)/'
> > # at t/010_pg_basebackup.pl line 769.
> > # 'unrecognized win32 error code: 123WARNING:
> > checksum verification failed in file "./base/5/16399", block 0:
> > calculated 4C09 but expected B3F6
> > # pg_basebackup: error: checksum error occurred
>
> Shouldn't we extend the mapping table in win32error.c so as the
> information provided is more useful when seeing this error, then?
> There could be other code path able to trigger this failure, or other
> hackers working on separate features that could benefit from this
> extra information.

Thanks. I will start a separate thread to discuss that.

--
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2022-09-22 05:47:52 pgsql: meson: Add initial version of meson based build system
Previous Message Michael Paquier 2022-09-22 05:33:57 Re: Background writer and checkpointer in crash recovery