From f4eb9071fdc3293be91a8f12570b4191543a4211 Mon Sep 17 00:00:00 2001 From: Duo Zhang Date: Fri, 29 Apr 2022 08:05:00 +0800 Subject: [PATCH] HBASE-26917 Do not add --threads when running 'mvn site' (#4354) Signed-off-by: GeorryHuang --- dev-support/hbase-personality.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 3018e8eb3c6..20600d52e10 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -156,10 +156,14 @@ function personality_modules # At a few points, hbase modules can run build, test, etc. in parallel # Let it happen. Means we'll use more CPU but should be for short bursts. # https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3 - if [[ -n "${BUILD_THREAD}" ]]; then - extra="--threads=${BUILD_THREAD}" + if [[ "${testtype}" == mvnsite ]]; then + yetus_debug "Skip specifying --threads since maven-site-plugin does not support building in parallel." else - extra="--threads=2" + if [[ -n "${BUILD_THREAD}" ]]; then + extra="--threads=${BUILD_THREAD}" + else + extra="--threads=2" + fi fi # Set java.io.tmpdir to avoid exhausting the /tmp space