From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Yugo NAGATA <nagata@sraoss.co.jp>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: kuroda.hayato@fujitsu.com, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgbench bug candidate: negative "initial connection time"
Date: Wed, 29 Sep 2021 22:11:53 +0900
Message-ID: <f65cc95b-f6d4-2d1c-9a67-731c198fed23@oss.nttdata.com> (raw)
In-Reply-To: <71ba41e8-017a-8bd9-e16e-7edb337e422d@oss.nttdata.com>
References: <alpine.DEB.2.22.394.2106171028050.2693553@pseudo>
<20210617181642.e9b9d9979e6bd3b02fcb3065@sraoss.co.jp>
<alpine.DEB.2.22.394.2106171149410.2693553@pseudo>
<20210618.172603.409047378314636142.horikyota.ntt@gmail.com>
<alpine.DEB.2.22.394.2106181434110.3146194@pseudo>
<alpine.DEB.2.22.394.2106181535400.3146194@pseudo>
<20210729132325.1f4bb9233f9fa759ca2d9213@sraoss.co.jp>
<602fccbd-a8cf-fc0a-da63-faaeb2cfbabe@oss.nttdata.com>
<20210924072645.cc30d215c024a0f6b1d1cff3@sraoss.co.jp>
<71ba41e8-017a-8bd9-e16e-7edb337e422d@oss.nttdata.com>
On 2021/09/24 11:26, Fujii Masao wrote:
>
>
> On 2021/09/24 7:26, Yugo NAGATA wrote:
>> That makes sense. Failures of setup connection or initial connection doesn't
>> seem 'static problems'. I rewrote this description to explain exit status 1
>> indicates also interal errors and early errors.
>>
>> Exit status 1 indicates static problems such as invalid command-line options
>> or internal errors which are supposed to never occur. Early errors that occur
>> when starting benchmark such as initial connection failures also exit with
>> status 1.
>
> LGTM. Barring any objection, I will commit the patch.
I extracted two changes from the patch and pushed (also back-patched) them.
The remainings are the changes of handling of initial connection or
logfile open failures. I agree to push them at least for the master.
But I'm not sure if they should be back-patched. Without these changes,
even when those failures happen, pgbench proceeds the benchmark and
reports the result. But with the changes, pgbench exits immediately in
that case. I'm not sure if there are people who expect this behavior,
but if there are, maybe we should not change it at least at stable branches.
Thought?
BTW, when logfile fails to be opened, pgbench gets stuck due to commit
aeb57af8e6. So even if we decided not to back-patch those changes,
we should improve the handling of logfile open failure, to fix the issue.
Regards,
--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION
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: masao.fujii@oss.nttdata.com, nagata@sraoss.co.jp, coelho@cri.ensmp.fr, horikyota.ntt@gmail.com
Subject: Re: pgbench bug candidate: negative "initial connection time"
In-Reply-To: <f65cc95b-f6d4-2d1c-9a67-731c198fed23@oss.nttdata.com>
References: <alpine.DEB.2.22.394.2106171028050.2693553@pseudo> <20210617181642.e9b9d9979e6bd3b02fcb3065@sraoss.co.jp> <alpine.DEB.2.22.394.2106171149410.2693553@pseudo> <20210618.172603.409047378314636142.horikyota.ntt@gmail.com> <alpine.DEB.2.22.394.2106181434110.3146194@pseudo> <alpine.DEB.2.22.394.2106181535400.3146194@pseudo> <20210729132325.1f4bb9233f9fa759ca2d9213@sraoss.co.jp> <602fccbd-a8cf-fc0a-da63-faaeb2cfbabe@oss.nttdata.com> <20210924072645.cc30d215c024a0f6b1d1cff3@sraoss.co.jp> <71ba41e8-017a-8bd9-e16e-7edb337e422d@oss.nttdata.com> <f65cc95b-f6d4-2d1c-9a67-731c198fed23@oss.nttdata.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