From 5cddcb33904818232bbfccf53dd1c58f06ff0fd1 Mon Sep 17 00:00:00 2001 From: Pranav Bhole Date: Mon, 18 Sep 2023 15:33:49 -0700 Subject: [PATCH] Print stack trace in case of debug in ChainedExecutionQueryRunner --- .../org/apache/druid/query/ChainedExecutionQueryRunner.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/processing/src/main/java/org/apache/druid/query/ChainedExecutionQueryRunner.java b/processing/src/main/java/org/apache/druid/query/ChainedExecutionQueryRunner.java index 5ff044f65641b..c8485814b5957 100644 --- a/processing/src/main/java/org/apache/druid/query/ChainedExecutionQueryRunner.java +++ b/processing/src/main/java/org/apache/druid/query/ChainedExecutionQueryRunner.java @@ -123,7 +123,11 @@ public Iterable call() throw e; } catch (Exception e) { - log.noStackTrace().error(e, "Exception with one of the sequences!"); + if (query.context().isDebug()) { + log.error(e, "Exception with one of the sequences!"); + } else { + log.noStackTrace().error(e, "Exception with one of the sequences!"); + } Throwables.propagateIfPossible(e); throw new RuntimeException(e); }