pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: myon@debian.org
Cc: andres@anarazel.de
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: 15beta1 test failure on mips in isolation/expected/stats
Date: Thu, 19 May 2022 22:58:14 -0400
Message-ID: <258994.1653015494@sss.pgh.pa.us> (raw)
In-Reply-To: <20220520.111427.2049044078750812296.horikyota.ntt@gmail.com>
References: <YoZf7U/WmfmFYFEx@msg.df7cb.de>
	<250690.1653010951@sss.pgh.pa.us>
	<20220520.110221.606276306063702515.horikyota.ntt@gmail.com>
	<20220520.111427.2049044078750812296.horikyota.ntt@gmail.com>

Kyotaro Horiguchi <horikyota.ntt@gmail.com> writes:
> At Fri, 20 May 2022 11:02:21 +0900 (JST), Kyotaro Horiguchi <horikyota.ntt@gmail.com> wrote in 
>> Doesn't the step s1_table_stats needs a blocking condition (s2_ff)?
> s/needs/need/;
> If I removed the step s2_ff, I see the same difference. So I think it
> is that.  Some other permutations seem to need the same.

Hmm ... it does seem like the answer might be somewhere around there,
but it's not there exactly.  This won't fix it:

-  s1_table_stats
+  s1_table_stats(s2_ff)

That sort of marker only stabilizes cases where two different steps might
be reported as completing in either order.  In this case, that's clearly
not the problem.  What we do need is to ensure that s1_table_stats doesn't
*launch* before s2_ff is done.  However, it doesn't look to me like that's
what's happening.  isolation/README explains that

    Notice that these markers can only delay reporting of the completion
    of a step, not the launch of a step.  The isolationtester will launch
    the next step in a permutation as soon as (A) all prior steps of the
    same session are done, and (B) the immediately preceding step in the
    permutation is done or deemed blocked.  For this purpose, "deemed
    blocked" means that it has been seen to be waiting on a database lock,
    or that it is complete but the report of its completion is delayed by
    one of these markers.

There's no "waiting..." reports in the test output, nor do we have any
condition markers in stats.spec right now, so I don't think any steps
have been "deemed blocked".

What I am wondering about at this point is whether the effects of
pg_stat_force_next_flush() could somehow be delayed until after we
have told the client the command is complete.  I've not poked into
the code in that area, but if that could happen it'd explain this
behavior.

			regards, tom lane





view thread (15+ messages)  latest in thread

Message-ID: <258994.1653015494@sss.pgh.pa.us>
Permalink:  ../258994.1653015494@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/258994.1653015494@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, horikyota.ntt@gmail.com, myon@debian.org, andres@anarazel.de
  Subject: Re: 15beta1 test failure on mips in isolation/expected/stats
  In-Reply-To: <258994.1653015494@sss.pgh.pa.us>
  References: <YoZf7U/WmfmFYFEx@msg.df7cb.de> <250690.1653010951@sss.pgh.pa.us> <20220520.110221.606276306063702515.horikyota.ntt@gmail.com> <20220520.111427.2049044078750812296.horikyota.ntt@gmail.com> <258994.1653015494@sss.pgh.pa.us>

* 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