You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/05/15 07:18:17 UTC

[GitHub] [flink] zentol commented on a change in pull request #8385: [FLINK-12463][tests] Deduplicate empty .out log file checks

zentol commented on a change in pull request #8385: [FLINK-12463][tests] Deduplicate empty .out log file checks
URL: https://github.com/apache/flink/pull/8385#discussion_r284115694
 
 

 ##########
 File path: flink-end-to-end-tests/test-scripts/common_ha.sh
 ##########
 @@ -59,10 +61,8 @@ function verify_logs() {
     local VERIFY_CHECKPOINTS=$2
 
     # verify that we have no alerts
-    if ! [ `cat ${OUTPUT} | wc -l` -eq 0 ]; then
-        echo "FAILURE: Alerts found at the general purpose job."
-        EXIT_CODE=1
-    fi
+    check_logs_for_non_empty_out_files
+    EXIT_CODE=$(($EXIT_CODE+$?))
 
 Review comment:
   I made a small change to again print something if this check fails, restoring the existing state.
   I think it's fine to fail late; if a test fails you can end up with something like:
   ```
   <log output>
   FAILURE: Alerts found at the general purpose job.
   FAILURE: A JM did not take over.
   FAILURE: A JM did not execute the job.
   One or more tests FAILED.
   ```
   I think this isn't obfuscating anything.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services