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 328c1dbbda f
328c1dbbda is described below
commit 328c1dbbda80780870e71524fe49308fc85ce603
Author: yiguolei <[email protected]>
AuthorDate: Mon Mar 13 18:45:56 2023 +0800
f
---
fe/fe-core/src/main/java/org/apache/doris/catalog/Table.java | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
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 ae5f7a0885..6a05c58179 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
@@ -165,14 +165,17 @@ public abstract class Table extends MetaObject implements
Writable, TableIf {
}
public void writeLock() {
+ LOG.info("{} tryhold yyyyylock", getName(), new Exception());
this.rwLock.writeLock().lock();
LOG.info("{} hold yyyyylock", getName(), new Exception());
}
public boolean writeLockIfExist() {
+ LOG.info("{} tryhold yyyyylock", getName(), new Exception());
this.rwLock.writeLock().lock();
if (isDropped) {
this.rwLock.writeLock().unlock();
+ LOG.info("{} hold yyyyylock", getName(), new Exception());
return false;
}
LOG.info("{} hold yyyyylock", getName(), new Exception());
@@ -183,7 +186,7 @@ public abstract class Table extends MetaObject implements
Writable, TableIf {
try {
boolean res = this.rwLock.writeLock().tryLock(timeout, unit);
if (!res && unit.toSeconds(timeout) >= 1) {
- LOG.warn("Failed to try table {}'s write lock. timeout {} {}.
Current owner: {}",
+ LOG.warn("yyyyyFailed to try table {}'s write lock. timeout {}
{}. Current owner: {}",
name, timeout, unit.name(), rwLock.getOwner());
}
if (res) {
@@ -191,7 +194,7 @@ public abstract class Table extends MetaObject implements
Writable, TableIf {
}
return res;
} catch (InterruptedException e) {
- LOG.warn("failed to try write lock at table[" + name + "]", e);
+ LOG.warn("yyyyyfailed to try write lock at table[" + name + "]",
e);
return false;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]