From c413bb1120fcd661eaf1ab9e4e7207b8cd5e12ab Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Thu, 17 Mar 2022 08:35:57 +0800 Subject: [PATCH] HBASE-26848 Addendum make tmpdir absolute (cherry picked from commit caea843e942f8677ec1b111f7a0a8874af9f97de) --- dev-support/flaky-tests/run-flaky-tests.Jenkinsfile | 3 ++- dev-support/hbase-personality.sh | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile index 30d748c86de..9bc6ab4d27a 100644 --- a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile +++ b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile @@ -46,7 +46,8 @@ pipeline { sh '''#!/usr/bin/env bash set -e declare -a curl_args=(--fail) - declare -a mvn_args=(--batch-mode -fn -Dbuild.id="${BUILD_ID}" -Dmaven.repo.local="${WORKSPACE}/local-repository" -Djava.io.tmpdir=target) + tmpdir=$(realpath target) + declare -a mvn_args=(--batch-mode -fn -Dbuild.id="${BUILD_ID}" -Dmaven.repo.local="${WORKSPACE}/local-repository" -Djava.io.tmpdir=${tmpdir}) if [ "${DEBUG}" = "true" ]; then curl_args=("${curl_args[@]}" -v) mvn_args=("${mvn_args[@]}" -X) diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index d6d21ed770b..835f969da52 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -165,7 +165,9 @@ function personality_modules # Set java.io.tmpdir to avoid exhausting the /tmp space # Just simply set to 'target', it is not very critical so we do not care # whether it is placed in the root directory or a sub module's directory - extra="${extra} -Djava.io.tmpdir=target -DHBasePatchProcess" + # let's make it absolute + tmpdir=$(realpath target) + extra="${extra} -Djava.io.tmpdir=${tmpdir} -DHBasePatchProcess" if [[ "${PATCH_BRANCH}" = branch-1* ]]; then extra="${extra} -Dhttps.protocols=TLSv1.2"