Binbin a2d22c63c0
Fix replica not able to initate election in time when epoch fails (#1009)
If multiple primary nodes go down at the same time, their replica nodes will
initiate the elections at the same time. There is a certain probability that
the replicas will initate the elections in the same epoch.

And obviously, in our current election mechanism, only one replica node can
eventually get the enough votes, and the other replica node will fail to win
due the the insufficient majority, and then its election will time out and
we will wait for the retry, which result in a long failure time.

If another node has been won the election in the failover epoch, we can assume
that my election has failed and we can retry as soom as possible.

Signed-off-by: Binbin <binloveplay1314@qq.com>
2024-11-11 22:12:49 +08:00
..
2024-05-22 23:24:12 -07:00
2024-05-22 23:24:12 -07:00
2024-05-22 23:24:12 -07:00
2024-05-22 23:24:12 -07:00
2024-05-22 23:24:12 -07:00
2024-05-22 23:24:12 -07:00
2024-10-21 22:54:40 -04:00
2024-07-18 19:21:45 -07:00
2024-05-22 23:24:12 -07:00
2024-10-08 08:07:51 -07:00
2024-10-02 19:28:55 +02:00
2024-10-02 19:28:55 +02:00
2024-10-02 19:28:55 +02:00
2024-05-22 23:24:12 -07:00
2024-06-07 01:40:55 +02:00
2024-05-22 23:24:12 -07:00
2021-07-10 10:04:54 -05:00
2024-08-27 16:11:33 +02:00
2024-05-22 23:24:12 -07:00
2024-08-31 15:42:44 +02:00
2024-08-31 15:42:44 +02:00