[feature](log)check and log holding lock time when it exceeds threshold (#17965)

Sometimes the competition of lock is fierce in DatabaseTransactionMgr, which may lead to publish time out, i think we should have a log to hint these lock competition.
This commit is contained in:
huanghaibin
2023-03-26 20:11:40 +08:00
committed by GitHub
parent e06c613f9a
commit 304064653c
2 changed files with 43 additions and 0 deletions

View File

@ -2063,5 +2063,11 @@ public class Config extends ConfigBase {
*/
@ConfField
public static String bdbje_file_logging_level = "ALL";
/**
* When holding lock time exceeds the threshold, need to report it.
*/
@ConfField
public static long lock_reporting_threshold_ms = 500L;
}