morningman commented on code in PR #39015:
URL: https://github.com/apache/doris/pull/39015#discussion_r1708699253


##########
fe/fe-common/src/main/java/org/apache/doris/common/Config.java:
##########
@@ -2987,4 +2987,17 @@ public static int metaServiceRpcRetryTimes() {
     
//==========================================================================
     //                      end of cloud config
     
//==========================================================================
+    
//==========================================================================
+    //                      start of lock config
+    @ConfField(description = {"是否开启死锁检测",
+            "Whether to enable deadlock detection"})
+    public static boolean enable_deadlock_detection = false;
+
+    @ConfField(description = {"死锁检测间隔时间,单位分钟",
+            "Deadlock detection interval time, unit minute"})
+    public static long deadlock_detection_interval_minute = 5;
+
+    @ConfField(description = {"表示最大锁持有时间,超过该时间会打印告警日志,单位秒",
+            "Maximum lock hold time; logs a warning if exceeded"})
+    public static long  max_lock_hold_threshold_seconds = 30;

Review Comment:
   And make it mutable



##########
fe/fe-common/src/main/java/org/apache/doris/common/Config.java:
##########
@@ -2987,4 +2987,17 @@ public static int metaServiceRpcRetryTimes() {
     
//==========================================================================
     //                      end of cloud config
     
//==========================================================================
+    
//==========================================================================
+    //                      start of lock config
+    @ConfField(description = {"是否开启死锁检测",
+            "Whether to enable deadlock detection"})
+    public static boolean enable_deadlock_detection = false;
+
+    @ConfField(description = {"死锁检测间隔时间,单位分钟",
+            "Deadlock detection interval time, unit minute"})
+    public static long deadlock_detection_interval_minute = 5;
+
+    @ConfField(description = {"表示最大锁持有时间,超过该时间会打印告警日志,单位秒",
+            "Maximum lock hold time; logs a warning if exceeded"})
+    public static long  max_lock_hold_threshold_seconds = 30;

Review Comment:
   ```suggestion
       public static long  max_lock_hold_threshold_seconds = 10;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to