pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Harrison <mh@pixar.com>
To: pgsql-admin@postgresql.org
Subject: hung postmaster when client machine dies?
Date: Thu, 29 Jan 2004 17:00:27 -0800
Message-ID: <4019ACAB.4010600@pixar.com> (raw)

We recently had an incident where a linux box went down with
a kernel error.  A process on the box had an open connection
to a postgres session, and was in a transaction.

This situation was noticed when other processes connected to
postgres would not respond.

We observed that there was postmaster connected to the ip address
of the downed machine with an "in transaction" status.  Killing
that processes unblocked the other processes.

Is this expected behavior?  Was postgres simply waiting for
a failure from the TCP/IP layer?

We're now running a watchdog process that pings machines for
which a postmaster is running and killing that process if
the machine is not contactable for a certain period of time.
Thanks to whoever made the status information show up in ps
output!

Unfortunately, we didn't capture the process data... if this
would help we can attempt to reproduce the situation.

Many TIA,
Mark

-- 
Mark Harrison
Pixar Animation Studios
Emeryville, CA




view thread (5+ messages)  latest in thread

Message-ID: <4019ACAB.4010600@pixar.com>
Permalink:  ../4019ACAB.4010600@pixar.com/
Also on:    postgresql.org/message-id/4019ACAB.4010600@pixar.com

 · 

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-admin@postgresql.org
  Cc: mh@pixar.com
  Subject: Re: hung postmaster when client machine dies?
  In-Reply-To: <4019ACAB.4010600@pixar.com>
  References: <4019ACAB.4010600@pixar.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