| From: | Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Infinite loop on master shutdown |
| Date: | 2018-05-17 08:19:00 |
| Message-ID: | 20180517.171900.220975443.horiguchi.kyotaro@lab.ntt.co.jp |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello, as in pgsql-bug ML.
https://www.postgresql.org/message-id/20180517.170021.24356216.horiguchi.kyotaro@lab.ntt.co.jp
Master can go into infinite loop on shutdown. But it is caused by
a broken database like storage rolled-back one. (The steps to
replay this is shown in the above mail.)
I think this can be avoided by rejecting a standby if it reports
that write LSN is smaller than flush LSN after catching up.
Is it worth fixing?
# The patch is slightly different from that I posted to -bugs.
It is enough to chek for the invalid state just once but the
patch continues the check.
regards,
--
Kyotaro Horiguchi
NTT Open Source Software Center
| Attachment | Content-Type | Size |
|---|---|---|
| reject_invalid_standby.patch | text/x-patch | 1014 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Paul Guo | 2018-05-17 08:20:50 | Re: pg_ugprade test failure on data set with column with default value with type bit/varbit |
| Previous Message | Konstantin Knizhnik | 2018-05-17 08:15:51 | Re: Removing unneeded self joins |