Immediate shutdown causes the assertion failure in 9.4dev

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Immediate shutdown causes the assertion failure in 9.4dev
Date: 2013-07-31 17:26:54
Message-ID: CAHGQGwF+BTZhFHncvnQUG+hdQCLSnzv16cvC-TX96eEOzpRvmQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I encountered the following assertion failure when I executed
an immediate shutdown.

LOG: received immediate shutdown request
WARNING: terminating connection because of crash of another server process
DETAIL: The postmaster has commanded this server process to roll back
the current transaction and exit, because another server process
exited abnormally and possibly corrupted shared memory.
HINT: In a moment you should be able to reconnect to the database and
repeat your command.
TRAP: FailedAssertion("!(CheckpointerPID == 0)", File: "postmaster.c",
Line: 3440)

The cause of this problem seems to be that PostmasterStateMachine()
may fail to wait for the checkpointer to exit. Attached patch fixes this.

Regards,

--
Fujii Masao

Attachment Content-Type Size
immediate_shutdown_bugfix_v1.patch application/octet-stream 2.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2013-07-31 17:36:24 Re: Backup throttling
Previous Message Jesse Denardo 2013-07-31 17:18:31 Re: 9.3beta2: Failure to pg_upgrade