pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: James L. Morton <jmorton@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9551: Hang in State "authentication" Prevents Vacuum from Freeing Dead Rows
Date: Fri, 14 Mar 2014 17:54:38 -0400
Message-ID: <27619.1394834078@sss.pgh.pa.us> (raw)
In-Reply-To: <CALzMLzwMd6BqQTyyi9d00BbN7x7LZBRKNVbTpzvm0b9597=0-Q@mail.gmail.com>
References: <20140312232810.634.7997@wrigleys.postgresql.org>
	<7087.1394738351@sss.pgh.pa.us>
	<CALzMLzwMd6BqQTyyi9d00BbN7x7LZBRKNVbTpzvm0b9597=0-Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

"James L. Morton" <jmorton@gmail.com> writes:
>  We've added monitoring for this particular problem and saw this happen
> once more today.  We noticed that this seems to correlate with a burst of
> log messages from auditd:
> ...
> When auditd exhausts its buffer, by default it begins logging to printk(),
> which in turn gets picked up by syslog.  Perhaps this burst of messages is
> causing syslog to pause long enough to reach authentication_timeout?  It
> seems odd, especially given that we have our Postgres syslog facility set
> to async.

Interesting.  Yeah, you'd certainly imagine that it shouldn't wait if
properly configured, but that's what seems to be happening.

I've committed a fix (which will appear in next week's releases) that
prevents the recursive call of syslog() by delaying processing of the
authentication_timeout interrupt until elog() is done.  That should fix
your problem as long as syslog's load-induced pause is transient.
However, if syslog() is getting wedged for some reason, you're still
going to have a stuck backend, because authentication_timeout won't
unwedge it.

			regards, tom lane


-- 
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 (4+ messages)

Message-ID: <27619.1394834078@sss.pgh.pa.us>
Permalink:  ../27619.1394834078@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27619.1394834078@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jmorton@gmail.com
  Subject: Re: BUG #9551: Hang in State "authentication" Prevents Vacuum from Freeing Dead Rows
  In-Reply-To: <27619.1394834078@sss.pgh.pa.us>
  References: <20140312232810.634.7997@wrigleys.postgresql.org> <7087.1394738351@sss.pgh.pa.us> <CALzMLzwMd6BqQTyyi9d00BbN7x7LZBRKNVbTpzvm0b9597=0-Q@mail.gmail.com> <27619.1394834078@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