tillrohrmann commented on a change in pull request #17137: URL: https://github.com/apache/flink/pull/17137#discussion_r719536807
########## File path: flink-end-to-end-tests/test-scripts/common_ha.sh ########## @@ -127,6 +127,18 @@ function kill_single { echo "Killed JM @ ${PID}" } +function start_expected_num_tms() { + local EXPECTED_TMS=$1 + + local RUNNING_TMS=`jps | grep 'TaskManager' | wc -l` + + while [ "${RUNNING_TMS}" -lt "${EXPECTED_TMS}" ]; do + echo "Starting new TM." + "$FLINK_DIR"/bin/taskmanager.sh start > /dev/null + RUNNING_TMS=$(( $RUNNING_TMS + 1 )) Review comment: Good catch. Thanks a lot! -- 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. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org