pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: haribabu.kommi@huawei.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7643: Issuing a shutdown request while server startup leads to server hang
Date: Thu, 08 Nov 2012 18:15:02 +0000
Message-ID: <E1TWWd4-0008AD-9E@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      7643
Logged by:          Haribabu
Email address:      haribabu.kommi@huawei.com
PostgreSQL version: 9.2.1
Operating system:   Suse Linux 10.2
Description:        

Problem Reproduction:
1. Add recovery.conf to the database directory.
2. Start the server
3. Issue the shutdown request 
and the shutdown request timing should be such that below server logs should
print.

Log:

./postgres -D data -p 3335
LOG:  database system was shut down in recovery at 2012-11-08 19:42:42 IST
LOG:  entering standby mode
LOG:  received fast shutdown request
LOG:  consistent recovery state reached at 0/17D0700
LOG:  record with zero length at 0/17D0700

Problem reproduced in 9.3 head.

I think the following things are leading to the problem:

1. The postmaster is queued up with the following signals in the order of
SIGINT (shutdown) and SIGUSR1 (Here we create bgwriter and checkpoint) and
the current state of postmaster is PM_STARTUP.

we are creating the bgwriter and checkpoint after processing the shutdown
request, because of this reason no one is there is to send the SIGTERM to
bgwriter and checkpoint.










view thread (8+ messages)  latest in thread

Message-ID: <E1TWWd4-0008AD-9E@wrigleys.postgresql.org>
Permalink:  ../E1TWWd4-0008AD-9E@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1TWWd4-0008AD-9E@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: haribabu.kommi@huawei.com
  Subject: Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
  In-Reply-To: <E1TWWd4-0008AD-9E@wrigleys.postgresql.org>
  References: <E1TWWd4-0008AD-9E@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