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:56:58 UTC

[flink] branch release-1.10 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.10
in repository https://gitbox.apache.org/repos/asf/flink.git


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

commit 32c9731b245448dac349a0f5870e9db2fd88aa11
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 ce0c030..5ce58bd 100644
--- a/flink-end-to-end-tests/test-scripts/common.sh
+++ b/flink-end-to-end-tests/test-scripts/common.sh
@@ -340,8 +340,8 @@ function check_logs_for_errors {
       | grep -v "[Terror] modules" \
       | 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."
@@ -376,8 +376,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."
@@ -396,8 +396,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."