Files
patroni/patroni
ChenChangAoandAlexander Kukushkin 783112385f reset failsafe state when promote (#2803)
consider the scenario(enable failsafe_mode):

0. node1(primary) - node2(replica)
1. stop all etcd nodes; wait ttl seconds; start all etcd nodes; (node2's failsafe will contain the info about node1)
2. switchover to node2; (node2's failsafe still contain the info about node1)
3. stop all etcd nodes; wait ttl seconds; start all etcd nodes;
4. node2 will demote because it consider node1 as primary

Resetting failsafe state when running as a primary fixes the issue.
2023-09-18 12:59:17 +02:00
..
2023-08-03 13:02:29 +02:00
2023-05-26 15:13:04 +02:00
2023-05-09 09:38:00 +02:00
2023-07-25 08:48:18 +02:00
2023-08-03 13:02:29 +02:00