Skip to content

Commit

Permalink
ODP-2607: Ensure flink_log_max is read as an integer in config.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sehaj-sandhu authored and shubhluck committed Jan 20, 2025
1 parent e3f5024 commit 6c5605e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flink-dist/src/main/flink-bin/bin/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ fi

if [ -z "${MAX_LOG_FILE_NUMBER}" ]; then
MAX_LOG_FILE_NUMBER=$(readFromConfig ${KEY_ENV_LOG_MAX} ${DEFAULT_ENV_LOG_MAX} "${YAML_CONF}")
# Remove leading and ending single quotes (if present) of value
MAX_LOG_FILE_NUMBER="$( echo "${MAX_LOG_FILE_NUMBER}" | sed -e "s/^'//" -e "s/'$//" )"
export MAX_LOG_FILE_NUMBER
fi

Expand Down

0 comments on commit 6c5605e

Please sign in to comment.