[improve](transaction) extend abort transaction time (#28662)

This commit is contained in:
HHoflittlefish777
2023-12-21 14:01:05 +08:00
committed by GitHub
parent d11bb11592
commit 4ee661202e
4 changed files with 29 additions and 1 deletions

View File

@ -1782,6 +1782,13 @@ public class Config extends ConfigBase {
@ConfField(mutable = true, masterOnly = true)
public static long max_backend_heartbeat_failure_tolerance_count = 1;
/**
* Abort transaction time after lost heartbeat.
* The default value is 300s, which means transactions of be will be aborted after lost heartbeat 300s.
*/
@ConfField(mutable = true, masterOnly = true)
public static int abort_txn_after_lost_heartbeat_time_second = 300;
/**
* Heartbeat interval in seconds.
* Default is 10, which means every 10 seconds, the master will send a heartbeat to all backends.