You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by kg...@apache.org on 2020/02/04 16:23:49 UTC
[hive] 02/03: HIVE-22801: Debug log is flooded with some debug dump
stack (Zoltan Haindrich reviewed by Miklos Gergely)
This is an automated email from the ASF dual-hosted git repository.
kgyrtkirk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
commit 684d302d196dfde624d727c4d8270e2bc0ed4ca5
Author: Zoltan Haindrich <ki...@rxd.hu>
AuthorDate: Tue Feb 4 14:08:10 2020 +0000
HIVE-22801: Debug log is flooded with some debug dump stack (Zoltan Haindrich reviewed by Miklos Gergely)
Signed-off-by: Zoltan Haindrich <ki...@rxd.hu>
---
.../src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
index 80d2111..793d041 100644
--- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
+++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java
@@ -9682,7 +9682,11 @@ public class ObjectStore implements RawStore, Configurable {
private void debugLog(final String message) {
if (LOG.isDebugEnabled()) {
- LOG.debug("{}", message, new Exception("Debug Dump Stack Trace (Not an Exception)"));
+ if (LOG.isTraceEnabled()) {
+ LOG.debug("{}", message, new Exception("Debug Dump Stack Trace (Not an Exception)"));
+ } else {
+ LOG.debug("{}", message);
+ }
}
}