yiguolei commented on code in PR #21996:
URL: https://github.com/apache/doris/pull/21996#discussion_r1271659457
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Table.java:
##########
@@ -162,11 +162,15 @@ public boolean tryReadLock(long timeout, TimeUnit unit) {
}
public void readUnlock() {
+ long nanoTime = System.nanoTime();
this.rwLock.readLock().unlock();
+ LOG.debug("table {} get read lock spent {} ms", getId(), (nanoTime -
System.nanoTime()) / 1000000L);
Review Comment:
add if(LOG.isDebugEnabled) because this line will print many many times.
It may have performance problem
--
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]