You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2016/04/12 23:18:45 UTC

[11/50] incubator-impala git commit: Print last 50 lines of log if data loading fails.

Print last 50 lines of log if data loading fails.

The 20 lines we dump currently are often not enough to
diagnose a failure quickly. Increasing to 50 lines.

Printing 50 lines is also consistent with our run-step
script which also prints 50 lines.

Change-Id: I353a2030be6fad1cd63879b4717e237344f85c73
Reviewed-on: http://gerrit.cloudera.org:8080/2632
Reviewed-by: Alex Behm <al...@cloudera.com>
Tested-by: Internal Jenkins


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

Branch: refs/heads/master
Commit: b2ccb17c21b32856f8f23de1e0df1c5c800c9e0b
Parents: 5e51f1c
Author: Alex Behm <al...@cloudera.com>
Authored: Fri Mar 25 13:34:15 2016 -0700
Committer: Internal Jenkins <cl...@gerrit.cloudera.org>
Committed: Mon Mar 28 20:22:18 2016 +0000

----------------------------------------------------------------------
 testdata/bin/create-load-data.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/b2ccb17c/testdata/bin/create-load-data.sh
----------------------------------------------------------------------
diff --git a/testdata/bin/create-load-data.sh b/testdata/bin/create-load-data.sh
index 6323e62..eace01e 100755
--- a/testdata/bin/create-load-data.sh
+++ b/testdata/bin/create-load-data.sh
@@ -146,7 +146,7 @@ function load-data {
   # Use unbuffered logging by executing with -u
   if ! impala-python -u ${IMPALA_HOME}/bin/load-data.py ${ARGS[@]} &> ${LOG_FILE}; then
     echo Error loading data. The end of the log file is:
-    tail -n 20 $LOG_FILE
+    tail -n 50 $LOG_FILE
     return 1
   fi
 }