Re: self-deadlock at FATAL exit of boostrap process on read error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: self-deadlock at FATAL exit of boostrap process on read error
Дата
Msg-id 437.1149695117@sss.pgh.pa.us
обсуждение исходный текст
Ответ на self-deadlock at FATAL exit of boostrap process on read error  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Список pgsql-hackers
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> I encounter a situation that the server can't shutdown when a boostrap
> process does ReadBuffer() but gets an read error.

Hm, AtProcExit_Buffers is assuming that we've done AbortTransaction,
but the WAL-replay process doesn't do that because it's not running a
transaction.  Seems like we need to stack another on-proc-exit function
to do the appropriate subset of AbortTransaction ... LWLockReleaseAll at
least, not sure what else.

Do you have a test case to reproduce this problem?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: That EXPLAIN ANALYZE patch still needs work
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How to avoid transaction ID wrap