This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 2310000 [FLINK-12065][e2e] Ignore reflection access warnings
2310000 is described below
commit 2310000b8c66b45c356924e1971a5e5d15714b48
Author: Chesnay Schepler <[email protected]>
AuthorDate: Fri Apr 5 12:45:41 2019 +0200
[FLINK-12065][e2e] Ignore reflection access warnings
---
flink-end-to-end-tests/test-scripts/common.sh | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/flink-end-to-end-tests/test-scripts/common.sh
b/flink-end-to-end-tests/test-scripts/common.sh
index e2c4560..285c606 100644
--- a/flink-end-to-end-tests/test-scripts/common.sh
+++ b/flink-end-to-end-tests/test-scripts/common.sh
@@ -352,7 +352,16 @@ function check_logs_for_exceptions {
function check_logs_for_non_empty_out_files {
echo "Checking for non-empty .out files..."
- if grep -ri "." $FLINK_DIR/log/*.out > /dev/null; then
+ # exclude reflective access warnings as these are expected (and currently
unavoidable) on Java 9
+ if grep -ri -v \
+ -e "WARNING: An illegal reflective access" \
+ -e "WARNING: Illegal reflective access"\
+ -e "WARNING: Please consider reporting"\
+ -e "WARNING: Use --illegal-access"\
+ -e "WARNING: All illegal access"\
+ $FLINK_DIR/log/*.out\
+ | grep "." \
+ > /dev/null; then
echo "Found non-empty .out files:"
cat $FLINK_DIR/log/*.out
EXIT_CODE=1