Binbin a21fe718f4
Limit CLUSTER_CANT_FAILOVER_DATA_AGE log to 10 times period (#1189)
If a replica is step into data_age too old stage, it can not
trigger the failover and currently it can not be automatically
recovered and we will print a log every
CLUSTER_CANT_FAILOVER_RELOG_PERIOD,
which is every second. If the primary has not recovered or there is
no manual failover, this log will flood the log file.

In this case, limit its frequency to 10 times period, which is
10 seconds in our code. Also in this data_age too old stage,
the repeated logs also can stand for the progress of the failover.

See also #780 for more details about it.

Signed-off-by: Binbin <binloveplay1314@qq.com>
Co-authored-by: Ping Xie <pingxie@outlook.com>
2024-10-24 16:38:47 +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-09-25 11:30:45 +02: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-10-21 11:56:44 +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
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