From: Noah Misch <noah@leadboat.com>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Euler Taveira <euler@eulerto.com>
Cc: osumi.takamichi@fujitsu.com <osumi.takamichi@fujitsu.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: tanghy.fnst@fujitsu.com <tanghy.fnst@fujitsu.com>
Cc: vignesh C <vignesh21@gmail.com>
Cc: Greg Nancarrow <gregn4422@gmail.com>
Cc: houzj.fnst@fujitsu.com <houzj.fnst@fujitsu.com>
Cc: Alexey Lesovsky <lesovsky@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Skipping logical replication transactions on subscriber side
Date: Fri, 1 Apr 2022 17:11:53 -0700
Message-ID: <20220402001153.GA3719101@rfd.leadboat.com> (raw)
In-Reply-To: <CAD21AoDF1N98AC91KVQXecLcTQCdUtrHR+YU-xNUStULpFqm1A@mail.gmail.com>
References: <CAA4eK1JO-B67Qf_ftj_YOCvwbsW=3mk+tXivXHfbxZZBDA-cjg@mail.gmail.com>
<CAD21AoDL8HGh7AExZsXvkJzrBN9zgk78sJoQiurnvf88xtM5XA@mail.gmail.com>
<CAA4eK1KCMdKUMGCMi_qk5-SmSKSe1jGzRyYMh0pfmEdx_B47YA@mail.gmail.com>
<c092b93b-5017-4b31-b8f0-53b0ba7995be@www.fastmail.com>
<CAA4eK1JbLRj6pSUENfDFsqj0+adNob_=RPXpnUnWFBskVi5JhA@mail.gmail.com>
<6320e1d2-b4fd-4e3e-9cae-3373fd6263fe@www.fastmail.com>
<CAA4eK1+bps=a5n-KzKd58qB-jPcEhy9vc+vDfhZFfGBtA2PPmg@mail.gmail.com>
<20220401074423.GC3682158@rfd.leadboat.com>
<CAD21AoAimoQU+j6w1-Uxbi-1ZRagDecYQtF48dXjARD4v7GCWQ@mail.gmail.com>
<CAD21AoDF1N98AC91KVQXecLcTQCdUtrHR+YU-xNUStULpFqm1A@mail.gmail.com>
On Fri, Apr 01, 2022 at 09:25:52PM +0900, Masahiko Sawada wrote:
> > On Fri, Apr 1, 2022 at 4:44 PM Noah Misch <noah@leadboat.com> wrote:
> > > src/test/subscription/t/029_on_error.pl has been failing reliably on the five
> > > AIX buildfarm members:
> > >
> > > # poll_query_until timed out executing this query:
> > > # SELECT subskiplsn = '0/0' FROM pg_subscription WHERE subname = 'sub'
> > > # expecting this output:
> > > # t
> > > # last actual query output:
> > > # f
> > > # with stderr:
> > > timed out waiting for match: (?^:LOG: done skipping logical replication transaction finished at 0/1D30788) at t/029_on_error.pl line 50.
> > >
> > > I've posted five sets of logs (2.7 MiB compressed) here:
> > > https://drive.google.com/file/d/16NkyNIV07o0o8WM7GwcaAYFQDPTkULkR/view?usp=sharing> Given that "SELECT subskiplsn = '0/0'
> FROM pg_subscription WHERE subname = 'sub’” didn't return true, some
> value was set to subskiplsn even after the unique key error.
>
> So I'm guessing that the apply worker could not get the updated value
> of the subskiplsn or its MySubscription->skiplsn could not match with
> the transaction's finish LSN. Also, given that the test is failing on
> all AIX buildfarm members, there might be something specific to AIX.
>
> Noah, to investigate this issue further, is it possible for you to
> apply the attached patch and run the 029_on_error.pl test? The patch
> adds some logs to get additional information.
Logs attached. I ran this outside the buildfarm script environment. Most
notably, I didn't override PG_TEST_TIMEOUT_DEFAULT like my buildfarm
configuration does, so the total log size is smaller.
Attachments:
log-subscription-20220401.tar.xz (application/octet-stream, 106.6K) download
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-hackers@postgresql.org
Cc: noah@leadboat.com, sawada.mshk@gmail.com, amit.kapila16@gmail.com, euler@eulerto.com, osumi.takamichi@fujitsu.com, peter.eisentraut@enterprisedb.com, david.g.johnston@gmail.com, tanghy.fnst@fujitsu.com, vignesh21@gmail.com, gregn4422@gmail.com, houzj.fnst@fujitsu.com, lesovsky@gmail.com
Subject: Re: Skipping logical replication transactions on subscriber side
In-Reply-To: <20220402001153.GA3719101@rfd.leadboat.com>
References: <CAA4eK1JO-B67Qf_ftj_YOCvwbsW=3mk+tXivXHfbxZZBDA-cjg@mail.gmail.com> <CAD21AoDL8HGh7AExZsXvkJzrBN9zgk78sJoQiurnvf88xtM5XA@mail.gmail.com> <CAA4eK1KCMdKUMGCMi_qk5-SmSKSe1jGzRyYMh0pfmEdx_B47YA@mail.gmail.com> <c092b93b-5017-4b31-b8f0-53b0ba7995be@www.fastmail.com> <CAA4eK1JbLRj6pSUENfDFsqj0+adNob_=RPXpnUnWFBskVi5JhA@mail.gmail.com> <6320e1d2-b4fd-4e3e-9cae-3373fd6263fe@www.fastmail.com> <CAA4eK1+bps=a5n-KzKd58qB-jPcEhy9vc+vDfhZFfGBtA2PPmg@mail.gmail.com> <20220401074423.GC3682158@rfd.leadboat.com> <CAD21AoAimoQU+j6w1-Uxbi-1ZRagDecYQtF48dXjARD4v7GCWQ@mail.gmail.com> <CAD21AoDF1N98AC91KVQXecLcTQCdUtrHR+YU-xNUStULpFqm1A@mail.gmail.com> <20220402001153.GA3719101@rfd.leadboat.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