pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jdnelson@dyn.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14416: checkpoints never completed
Date: Mon, 07 Nov 2016 18:27:07 +0000
Message-ID: <20161107182707.1393.91785@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14416
Logged by:          Jon Nelson
Email address:      jdnelson@dyn.com
PostgreSQL version: 9.4.9
Operating system:   Linux
Description:        

PostgreSQL 9.4.9 on CentOS-7, x86_64, on ext4.


We encountered a problem where checkpoints appeared to queue up and never
finish.


The logs show that checkpoints were happening normally, once per minute
(which is our desired configuration in this case). 


01:08:27 the system clock was synchronized. It was behind by about one
hour.
01:23:31 a backup (pg_start_backup) is started
03:40:14 we saw our first “out of disk space” message
03:47:51 we saw “checkpoint starting: time” (with no corresponding
“checkpoint complete” messages) *once per second*. We are also out of disk
space at this time.
04:00:01 we see a ‘checkpoint complete’ message (despite still being out of
disk space!)


Checkpoints appear normal until 4:07:01 at which point the the “checkpoint
start: time” message occurs once per *second*.  Still out of disk space.


05:51:13 we see the first “checkpoint complete”.
05:51:22 (7 seconds later) we see a “checkpoint starting: time” message.  No
messages containing "checkpoint" appear after this.


07:43:54 an error message indicating that “pg_stop_backup()” says a backup
isn’t in progress. NOTE: we do *not* see a successful pg_stop_backup(), but
it’s possible that it took less than 500ms which is our
log_min_duration_statement threshold.


23:19:32 our attempts at a manual CHECKPOINT all hang, and the only messages
with ‘checkpoint’ in them are notices of our cancellations.


We chose to shut the instance down.  Over 400GB of WAL files had accrued due
to no checkpoint completing. The instance came up without issue and resumed
operations.



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (5+ messages)  latest in thread

Message-ID: <20161107182707.1393.91785@wrigleys.postgresql.org>
Permalink:  ../20161107182707.1393.91785@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20161107182707.1393.91785@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: jdnelson@dyn.com
  Subject: Re: BUG #14416: checkpoints never completed
  In-Reply-To: <20161107182707.1393.91785@wrigleys.postgresql.org>
  References: <20161107182707.1393.91785@wrigleys.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