Re: walreceiver that is behind doesn't quit, send replies

2021-05-10 Thread Andres Freund
Hi, On 2021-05-10 19:27:55 -0700, Andres Freund wrote: > I've a couple times gotten into a situation where I was shutting down > the primary while the standby was behind, and the system appeared to > just lock up, with neither primary nor standby reacting to normal > shutdown attempts. This seems

walreceiver that is behind doesn't quit, send replies

2021-05-10 Thread Andres Freund
Hi, There are no interrupt checks in the WalReceiverMain() sub-loop for receiving WAL. There's one above /* See if we can read data immediately */ len = walrcv_receive(wrconn, &buf, &wait_fd); but none in the loop below: