drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amansi...@apache.org
Subject drill git commit: DRILL-2601: log the query text and query id right at the beginning of foreman's runSQL().
Date Sat, 14 Nov 2015 01:26:52 GMT
Repository: drill
Updated Branches:
  refs/heads/master 447f8ba53 -> e22b8ff27


DRILL-2601: log the query text and query id right at the beginning of foreman's runSQL().


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/e22b8ff2
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/e22b8ff2
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/e22b8ff2

Branch: refs/heads/master
Commit: e22b8ff2771b6e3b7b8274bd44e29f27151fc80c
Parents: 447f8ba
Author: Aman Sinha <asinha@maprtech.com>
Authored: Fri Nov 13 00:28:52 2015 -0800
Committer: Aman Sinha <asinha@maprtech.com>
Committed: Fri Nov 13 15:17:58 2015 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/drill/exec/work/foreman/Foreman.java    | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/e22b8ff2/exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java
b/exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java
index d609915..71f9307 100644
--- a/exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java
@@ -900,6 +900,10 @@ public class Foreman implements Runnable {
   }
 
   private void runSQL(final String sql) throws ExecutionSetupException {
+    // log query id and query text before starting any real work. Also, put
+    // them together such that it is easy to search based on query id
+    logger.info("Query text for query id {}: {}", this.queryIdString, sql);
+
     final DrillSqlWorker sqlWorker = new DrillSqlWorker(queryContext);
     final Pointer<String> textPlan = new Pointer<>();
     final PhysicalPlan plan = sqlWorker.getPlan(sql, textPlan);


Mime
View raw message