Re: Failure in subscription test 004_sync.pl - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Failure in subscription test 004_sync.pl
Date
Msg-id 202106142040.tnsgrftbcfmc@alvherre.pgsql
Whole thread Raw
In response to Re: Failure in subscription test 004_sync.pl  (Masahiko Sawada <sawada.mshk@gmail.com>)
List pgsql-hackers
On 2021-Jun-14, Masahiko Sawada wrote:

> The condition should be the opposite; we should raise the error when
> 'nowait' is true. I think this is the cause of the test failure. Even
> if DROP SUBSCRIPTION tries to drop the slot with the WAIT option, we
> don't wait but raise the error.

Hi, thanks for diagnosing this and producing a patch!  I ended up
turning the condition around, so that all three stanzas still test
"!nowait"; which seems a bit easier to follow.

TBH I'm quite troubled by the fact that this test only failed once on
each animal; they all had a lot of successful runs after that.  I wonder
if this is because coverage is insufficient, or is it just bad luck.

I also wonder if this bug is what caused the random failures in the test
case I tried to add.  I should look at that some more now ...

-- 
Álvaro Herrera       Valdivia, Chile
Al principio era UNIX, y UNIX habló y dijo: "Hello world\n".
No dijo "Hello New Jersey\n", ni "Hello USA\n".



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PG 14 release notes, first draft
Next
From: Bruce Momjian
Date:
Subject: Re: a path towards replacing GEQO with something better