You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2020/05/27 13:57:21 UTC

[flink] branch release-1.11 updated: [FLINK-16694][ci] Limit number of dumped log lines

This is an automated email from the ASF dual-hosted git repository.

chesnay pushed a commit to branch release-1.11
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.11 by this push:
     new f7db8b3  [FLINK-16694][ci] Limit number of dumped log lines
f7db8b3 is described below

commit f7db8b351a86247519c72406009bd1f48608c02e
Author: Chesnay Schepler <ch...@apache.org>
AuthorDate: Tue May 26 14:54:02 2020 +0200

    [FLINK-16694][ci] Limit number of dumped log lines
---
 flink-end-to-end-tests/test-scripts/common.sh | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/flink-end-to-end-tests/test-scripts/common.sh b/flink-end-to-end-tests/test-scripts/common.sh
index d9969e0..3baae6b 100644
--- a/flink-end-to-end-tests/test-scripts/common.sh
+++ b/flink-end-to-end-tests/test-scripts/common.sh
@@ -365,8 +365,8 @@ function check_logs_for_errors {
       | grep -v "error_prone_annotations" \
       | grep -ic "error" || true)
   if [[ ${error_count} -gt 0 ]]; then
-    echo "Found error in log files:"
-    cat $FLINK_DIR/log/*
+    echo "Found error in log files; printing first 500 lines; see full logs for details:"
+    find $FLINK_DIR/log/ -exec head --lines=500 {} \;
     EXIT_CODE=1
   else
     echo "No errors in log files."
@@ -401,8 +401,8 @@ function check_logs_for_exceptions {
    | grep -v "org.apache.flink.runtime.JobException: Recovery is suppressed" \
    | grep -ic "exception" || true)
   if [[ ${exception_count} -gt 0 ]]; then
-    echo "Found exception in log files:"
-    cat $FLINK_DIR/log/*
+    echo "Found exception in log files; printing first 500 lines; see full logs for details:"
+    find $FLINK_DIR/log/ -exec head --lines=500 {} \;
     EXIT_CODE=1
   else
     echo "No exceptions in log files."
@@ -423,8 +423,8 @@ function check_logs_for_non_empty_out_files {
     $FLINK_DIR/log/*.out\
    | grep "." \
    > /dev/null; then
-    echo "Found non-empty .out files:"
-    cat $FLINK_DIR/log/*.out
+    echo "Found non-empty .out files; printing first 500 lines; see full logs for details:"
+    find $FLINK_DIR/log/ -name '*.out' -exec head --lines=500 {} \;
     EXIT_CODE=1
   else
     echo "No non-empty .out files."