From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ckolovson@gmail.com
Subject: BUG #16440: pg_basebackup intermittently hangs waiting for input unless run with --checkpoint=fast option
Date: Fri, 15 May 2020 16:46:37 +0000
Message-ID: <16440-922afebf534d3926@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16440
Logged by: Curt Kolovson
Email address: ckolovson@gmail.com
PostgreSQL version: 10.9
Operating system: Linux 4.9.219-1.ph2 x86_64 (VMware Photon OS 2.0)
Description:
We have noticed what appears to be an intermittent bug in pg_basebackup.
Here is what we are occasionally seeing:
$ /opt/vmware/vpostgres/current/bin/pg_basebackup -l "repmgr base backup"
-D /var/vmware/vpostgres/current/pgdata -h 172.18.50.48 -p 5432 -U repmgr -X
stream --verbose --progress
pg_basebackup: initiating base backup, waiting for checkpoint to complete
And then it hangs indefinitely at this point. It makes no progress (0 CPU),
so it is hanging on some type of input. Here is ps output:
postgres 3386 3370 0 15:01 ? 00:00:00
/opt/vmware/vpostgres/current/bin/pg_basebackup -l repmgr base backup -D
/var/vmware/vpostgres/current/pgdata -h 172.18.50.48 -p 5432 -U repmgr -X
stream
We notice that this behavior only occurs intermittently, but when it does,
it happens repeatedly on that system. The only workarounds we have found are
either to run it with the --checkpoint=fast option, or to restart postgres
on the primary.
We are using synchronous streaming replication.
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-bugs@postgresql.org
Cc: noreply@postgresql.org, ckolovson@gmail.com
Subject: Re: BUG #16440: pg_basebackup intermittently hangs waiting for input unless run with --checkpoint=fast option
In-Reply-To: <16440-922afebf534d3926@postgresql.org>
References: <16440-922afebf534d3926@postgresql.org>
* 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