Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#8199] improvement(core): correct lock type in TreeLock log messages (#8268)

keepConcentration2b32964b59d7
diff --git a/core/src/main/java/org/apache/gravitino/lock/TreeLock.java b/core/src/main/java/org/apache/gravitino/lock/TreeLock.java
index 76f01e5d63..d08026d33a 100644
--- a/core/src/main/java/org/apache/gravitino/lock/TreeLock.java
+++ b/core/src/main/java/org/apache/gravitino/lock/TreeLock.java
@@ -111,7 +111,7 @@ public class TreeLock {
LOG.trace(
"Node {} has been lock with '{}' lock, hold by {} with ident '{}' at {}",
this,
- lockType,
+ type,
Thread.currentThread(),
identifier,
System.currentTimeMillis());
@@ -155,7 +155,7 @@ public class TreeLock {
LOG.trace(
"Node {} has been unlock with '{}' lock, hold by {} with ident '{}' for {} ms",
this,
- lockType,
+ type,
Thread.currentThread(),
identifier,
System.currentTimeMillis() - holdStartTime);