This is an automated email from the ASF dual-hosted git repository. stigahuang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/impala.git
commit 19f662301cafc95be59fda261ad4583a48ed4461 Author: jasonmfehr <[email protected]> AuthorDate: Mon Aug 4 10:08:21 2025 -0700 IMPALA-14214: [Addendum] - Ensure IMPALA_TOOLCHAIN_COMMIT_HASH Matches Build IDs Adds verification code to ensure the IMPALA_TOOLCHAIN_COMMIT_HASH environment variable matches the commit hash in the IMPALA_TOOLCHAIN_BUILD_ID_AARCH64 and IMPALA_TOOLCHAIN_BUILD_ID_X86_64 environment variables. Generated-by: Github Copilot (Claude Sonnet 3.7) Change-Id: I348698356a014413875f6b8b54a005bf89b9793a Reviewed-on: http://gerrit.cloudera.org:8080/23243 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- bin/impala-config.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/impala-config.sh b/bin/impala-config.sh index b50b458a7..1846e885f 100755 --- a/bin/impala-config.sh +++ b/bin/impala-config.sh @@ -97,6 +97,14 @@ if [ "${IMPALA_TOOLCHAIN_BUILD_ID_AARCH64#*-}" \ exit 1 fi +# Ensure the IMPALA_TOOLCHAIN_COMMIT_HASH matches the hash in the toolchain build ids. +TOOLCHAIN_SHORT_HASH="${IMPALA_TOOLCHAIN_BUILD_ID_X86_64#*-}" +if [[ ! "$IMPALA_TOOLCHAIN_COMMIT_HASH" == "$TOOLCHAIN_SHORT_HASH"* ]]; then + echo "ERROR: IMPALA_TOOLCHAIN_COMMIT_HASH '$IMPALA_TOOLCHAIN_COMMIT_HASH' does not " \ + "start with TOOLCHAIN_SHORT_HASH '$TOOLCHAIN_SHORT_HASH'" + exit 1 +fi + export ARCH_NAME=$(uname -p) # Versions of toolchain dependencies.
