Обсуждение: pgsql: Fix assertion failure by an immediate shutdown.

Поиск
Список
Период
Сортировка

pgsql: Fix assertion failure by an immediate shutdown.

От
Fujii Masao
Дата:
Fix assertion failure by an immediate shutdown.

In PM_WAIT_DEAD_END state, checkpointer process must be dead already.
But an immediate shutdown could make postmaster's state machine
transition to PM_WAIT_DEAD_END state even if checkpointer process is
still running,  and which caused assertion failure. This bug was introduced
in commit 457d6cf049c57cabe9b46ea13f26138040a214ec.

This patch ensures that postmaster's state machine doesn't transition to
PM_WAIT_DEAD_END state in an immediate shutdown while checkpointer
process is running.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/91c3613d3748d881706c3e60d8221ea92833ac1a

Modified Files
--------------
src/backend/postmaster/postmaster.c |   16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)


Re: pgsql: Fix assertion failure by an immediate shutdown.

От
Fujii Masao
Дата:
On Thu, Aug 8, 2013 at 2:49 AM, Fujii Masao <fujii@postgresql.org> wrote:
> Fix assertion failure by an immediate shutdown.
>
> In PM_WAIT_DEAD_END state, checkpointer process must be dead already.
> But an immediate shutdown could make postmaster's state machine
> transition to PM_WAIT_DEAD_END state even if checkpointer process is
> still running,  and which caused assertion failure. This bug was introduced
> in commit 457d6cf049c57cabe9b46ea13f26138040a214ec.

Sorry, this is not true. I copied and pasted wrong commit id. The
right commit id
which introduced this bug is 82233ce7ea42d6ba519aaec63008aff49da6c7af.

Regards,

--
Fujii Masao