You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2022/03/16 09:53:42 UTC
[hbase] branch master updated: HBASE-26848 Set java.io.tmpdir on mvn command when running jenkins job (#4231)
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new cc13624 HBASE-26848 Set java.io.tmpdir on mvn command when running jenkins job (#4231)
cc13624 is described below
commit cc136242325c2cac65be5b17cc26314cd9cc5bf9
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Wed Mar 16 17:52:36 2022 +0800
HBASE-26848 Set java.io.tmpdir on mvn command when running jenkins job (#4231)
Signed-off-by: GeorryHuang <hu...@apache.org>
---
dev-support/flaky-tests/run-flaky-tests.Jenkinsfile | 2 +-
dev-support/hbase-personality.sh | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
index da22434..30d748c 100644
--- a/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
+++ b/dev-support/flaky-tests/run-flaky-tests.Jenkinsfile
@@ -46,7 +46,7 @@ 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")
+ declare -a mvn_args=(--batch-mode -fn -Dbuild.id="${BUILD_ID}" -Dmaven.repo.local="${WORKSPACE}/local-repository" -Djava.io.tmpdir=target)
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 af2bc88..1a8f7f0 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -162,7 +162,11 @@ function personality_modules
extra="--threads=2"
fi
- extra="${extra} -DHBasePatchProcess"
+ # 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"
+
if [[ "${PATCH_BRANCH}" = branch-1* ]]; then
extra="${extra} -Dhttps.protocols=TLSv1.2"
fi