xy720 commented on code in PR #40746:
URL: https://github.com/apache/doris/pull/40746#discussion_r1756747665
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Table.java:
##########
@@ -176,16 +188,49 @@ public boolean writeLockIfExist() {
this.rwLock.writeLock().unlock();
return false;
}
+ lockWriteStart = System.currentTimeMillis();
return true;
}
+ private void checkAndLogLockDuration(String type, long lockStart, long
lockEnd) {
+ long duration = lockEnd - lockStart;
+ if (duration > Config.lock_reporting_threshold_ms) {
Review Comment:
The Config lock_reporting_threshold_ms is not mutable, may be you should use
a new independent and mutable config
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]