This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch opt_dict_perf
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/opt_dict_perf by this push:
     new 3df85ccefe f
3df85ccefe is described below

commit 3df85ccefe99d77bf8bb64b383b4a9078a2269cd
Author: yiguolei <[email protected]>
AuthorDate: Mon Mar 13 18:14:19 2023 +0800

    f
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/Table.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/Table.java 
b/fe/fe-core/src/main/java/org/apache/doris/catalog/Table.java
index 60547c659a..ae5f7a0885 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/Table.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/Table.java
@@ -166,6 +166,7 @@ public abstract class Table extends MetaObject implements 
Writable, TableIf {
 
     public void writeLock() {
         this.rwLock.writeLock().lock();
+        LOG.info("{} hold yyyyylock", getName(), new Exception());
     }
 
     public boolean writeLockIfExist() {
@@ -174,6 +175,7 @@ public abstract class Table extends MetaObject implements 
Writable, TableIf {
             this.rwLock.writeLock().unlock();
             return false;
         }
+        LOG.info("{} hold yyyyylock", getName(), new Exception());
         return true;
     }
 
@@ -184,6 +186,9 @@ public abstract class Table extends MetaObject implements 
Writable, TableIf {
                 LOG.warn("Failed to try table {}'s write lock. timeout {} {}. 
Current owner: {}",
                         name, timeout, unit.name(), rwLock.getOwner());
             }
+            if (res) {
+                LOG.info("{} hold yyyyylock", getName(), new Exception());
+            }
             return res;
         } catch (InterruptedException e) {
             LOG.warn("failed to try write lock at table[" + name + "]", e);
@@ -193,6 +198,7 @@ public abstract class Table extends MetaObject implements 
Writable, TableIf {
 
     public void writeUnlock() {
         this.rwLock.writeLock().unlock();
+        LOG.info("{} yyyyyunlock", getName(), new Exception());
     }
 
     public boolean isWriteLockHeldByCurrentThread() {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to