Ian Barwick
9273e7af73
"standby switchover": avoid potential race condition with WAL location check
...
Immediately after the demotion candidate (primary) has shut down, we can't
be absolutely sure that the walreceiver has flushed all WAL to disk, so
checking pg_last_wal_receive_lsn() at that point might not reflect
the actual last available WAL location.
To handle this, we'll loop for a while (timeout controlled by configuration
parameter "wal_receive_check_timeout") before finally deciding whether
the standby is still behind the shut-down primary.
Addresses issue raised in GitHub #518 .
2019-02-01 12:06:22 +09:00
..
2017-12-21 18:31:05 +00:00
2019-01-16 11:27:35 +09:00
2019-01-30 09:45:08 +09:00
2019-02-01 12:06:22 +09:00
2018-08-30 12:40:05 +09:00
2019-01-23 10:28:48 +09:00
2019-01-23 10:28:48 +09:00
2019-01-15 12:45:33 +09:00
2018-07-12 14:50:48 +09:00
2019-01-15 12:45:33 +09:00
2018-11-28 12:58:07 +09:00
2017-10-26 16:11:17 +09:00
2019-01-23 12:25:02 +09:00
2018-08-07 13:10:30 +09:00
2018-08-30 12:39:58 +09:00
2019-01-29 13:01:19 +09:00
2019-01-21 17:37:01 +05:30
2019-01-30 09:45:08 +09:00
2019-01-07 12:18:17 +09:00
2019-01-15 12:56:18 +09:00
2017-10-17 11:00:37 +09:00
2019-01-21 14:54:35 +09:00
2017-12-21 18:31:05 +00:00
2018-04-24 21:08:05 +09:00
2017-10-19 12:21:50 +09:00
2019-01-23 12:25:02 +09:00
2018-09-25 15:56:40 +09:00
2018-10-03 10:12:18 +09:00
2018-07-13 11:19:42 +09:00
2018-10-03 10:12:18 +09:00
2019-01-16 16:03:44 +09:00
2019-01-28 09:52:51 +09:00
2019-01-30 15:43:34 +09:00
2019-01-28 09:52:51 +09:00
2019-01-30 15:43:34 +09:00
2019-01-28 09:52:51 +09:00
2019-01-24 10:31:45 +09:00
2019-01-31 12:25:58 +09:00
2018-11-28 12:58:07 +09:00
2018-07-05 14:31:06 +09:00
2018-10-31 10:27:37 +09:00
2018-08-30 12:39:58 +09:00
2019-01-29 13:01:19 +09:00
2019-01-24 10:43:38 +09:00
2019-01-10 12:36:58 +09:00
2018-08-30 12:39:58 +09:00
2019-02-01 12:06:22 +09:00
2018-08-30 12:39:58 +09:00
2019-01-17 10:52:41 +09:00
2018-08-30 12:39:58 +09:00
2019-01-29 13:01:19 +09:00
2017-10-19 12:21:50 +09:00
2018-08-30 12:39:54 +09:00
2019-01-21 14:16:49 +09:00
2019-01-30 14:41:31 +09:00
2018-08-30 12:40:08 +09:00
2017-11-17 09:39:11 +09:00
2018-08-14 10:09:52 +09:00
2018-08-30 12:40:08 +09:00
2017-08-25 15:58:52 +09:00
2019-01-23 12:33:57 +09:00
2017-11-17 11:00:43 +09:00
2017-10-05 10:30:28 +09:00
2017-10-05 10:30:28 +09:00
2019-01-16 09:37:58 +09:00
2019-01-23 10:28:48 +09:00
2019-01-15 12:45:33 +09:00
2018-11-22 11:16:44 +09:00
2017-10-05 10:30:29 +09:00