From 9a47e8fa737b22fccc34dd23bd85ab7edb952b69 Mon Sep 17 00:00:00 2001 From: shuke <37901441+shuke987@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:56:01 +0800 Subject: [PATCH] [catalog lock](log) enable catalog lock log (#24530) --- .../src/main/java/org/apache/doris/catalog/Env.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java index 2c80226e3d..a0cdc7068f 100755 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Env.java @@ -855,12 +855,10 @@ public class Env { while (true) { try { if (!lock.tryLock(Config.catalog_try_lock_timeout_ms, TimeUnit.MILLISECONDS)) { - if (LOG.isDebugEnabled()) { - // to see which thread held this lock for long time. - Thread owner = lock.getOwner(); - if (owner != null) { - LOG.info("catalog lock is held by: {}", Util.dumpThread(owner, 10)); - } + // to see which thread held this lock for long time. + Thread owner = lock.getOwner(); + if (owner != null) { + LOG.info("catalog lock is held by: {}", Util.dumpThread(owner, 10)); } if (mustLock) {