Yikun Jiang created SPARK-43793: ----------------------------------- Summary: Fix SPARK_EXECUTOR_JAVA_OPTS assignment bug Key: SPARK-43793 URL: https://issues.apache.org/jira/browse/SPARK-43793 Project: Spark Issue Type: Sub-task Components: Spark Docker Affects Versions: 3.5.0 Reporter: Yikun Jiang
env | grep SPARK_JAVA_OPT_ |... This is susceptible to a few bugs particularly around newlines in values. I see two ways around it. ensuring the matching name is at the start, -E '^SPARK_JAVA_OPT_', and running all the commands with null-terminated input and output: env -0 and -z on the other commands or bash variable prefix expansion for v in "${!SPARK_JAVA_OPT_@}"; do SPARK_EXECUTOR_JAVA_OPTS+=( "${!v}" ) done -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org