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/07/29 11:06:53 UTC

[GitHub] [flink] ifndef-SleePy commented on a change in pull request #9207: [FLINK-9526][e2e] Fix unstable BucketingSink end-to-end test

ifndef-SleePy commented on a change in pull request #9207: [FLINK-9526][e2e] Fix unstable BucketingSink end-to-end test
URL: https://github.com/apache/flink/pull/9207#discussion_r308173259
 
 

 ##########
 File path: flink-end-to-end-tests/test-scripts/test_streaming_bucketing.sh
 ##########
 @@ -22,7 +22,8 @@ source "$(dirname "$0")"/common.sh
 TEST_PROGRAM_JAR=${END_TO_END_DIR}/flink-bucketing-sink-test/target/BucketingSinkTestProgram.jar
 
 # enable DEBUG logging level to retrieve truncate length later
-sed -i -e 's/#log4j.logger.org.apache.flink=INFO/log4j.logger.org.apache.flink=DEBUG/g' $FLINK_DIR/conf/log4j.properties
+echo "" >> $FLINK_DIR/conf/log4j.properties
+echo "log4j.logger.org.apache.flink.streaming.connectors.fs.bucketing.BucketingSink=DEBUG, file" >> $FLINK_DIR/conf/log4j.properties
 
 
 Review comment:
   1. Good catch of `, file`
   2. `echo "" >> $FLINK_DIR/conf/log4j.properties` is to make sure `log4j.logger.org.apache.flink.streaming.connectors.fs.bucketing.BucketingSink=DEBUG` would be always in a new line. If case of there is no `\n` at the end of log4j.properties. Although there is a `\n` now, but I don't want to depend on it. So I prefer to keep this empty line, what do you think?

----------------------------------------------------------------
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