Re: Introduce wait_for_subscription_sync for TAP tests

From: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: "shiy(dot)fnst(at)fujitsu(dot)com" <shiy(dot)fnst(at)fujitsu(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Introduce wait_for_subscription_sync for TAP tests
Date: 2022-08-04 06:28:05
Message-ID: CAD21AoDD4-6PJHp=X-bo7DgRjJsU92LVvL7qotCf0oO+QjsNAQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Aug 4, 2022 at 10:37 AM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> On Wed, Aug 3, 2022 at 10:21 AM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> >
> > Pushed this one and now I'll look at your other patch.
> >
>
> I have pushed the second patch as well after making minor changes in
> the comments. Alvaro [1] and Tom [2] suggest to back-patch this and
> they sound reasonable to me. Will you be able to produce back branch
> patches?

Yes. I've attached patches for backbranches. The updates are
straightforward on v11 - v15. However, on v10, we don't use
wait_for_catchup() in some logical replication test cases. The commit
bbd3363e128dae refactored the tests to use wait_for_catchup but it's
not backpatched. So in the patch for v10, I didn't change the code
that was changed by the commit. Also, since wait_for_catchup requires
to specify $target_lsn, unlike the one in v11 or later, I changed
wait_for_subscription_sync() accordingly.

Regards,

--
Masahiko Sawada
EDB: https://www.enterprisedb.com/

Attachment Content-Type Size
REL13_v4-0001-Add-wait_for_subscription_sync-for-TAP-tests.patch application/x-patch 15.8 KB
REL15_v4-0001-Add-wait_for_subscription_sync-for-TAP-tests.patch application/x-patch 40.7 KB
REL14_v4-0001-Add-wait_for_subscription_sync-for-TAP-tests.patch application/x-patch 24.2 KB
REL11_v4-0001-Add-wait_for_subscription_sync-for-TAP-tests.patch application/x-patch 12.0 KB
REL12_v4-0001-Add-wait_for_subscription_sync-for-TAP-tests.patch application/x-patch 12.6 KB
REL10_v4-0001-Add-wait_for_subscription_sync-for-TAP-tests.patch application/octet-stream 10.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bharath Rupireddy 2022-08-04 06:29:12 Re: pg_receivewal fail to streams when the partial file to write is not fully initialized present in the wal receiver directory
Previous Message Noah Misch 2022-08-04 06:24:56 Re: Race between KeepFileRestoredFromArchive() and restartpoint