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/04/29 10:16:44 UTC
[hbase] branch branch-2 updated: HBASE-26917 Do not add --threads when running 'mvn site' (#4354)
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 0a0bea64f72 HBASE-26917 Do not add --threads when running 'mvn site' (#4354)
0a0bea64f72 is described below
commit 0a0bea64f7233b23472dc554de7cf1b87b87749c
Author: Duo Zhang <zh...@apache.org>
AuthorDate: Fri Apr 29 08:05:00 2022 +0800
HBASE-26917 Do not add --threads when running 'mvn site' (#4354)
Signed-off-by: GeorryHuang <hu...@apache.org>
(cherry picked from commit f4eb9071fdc3293be91a8f12570b4191543a4211)
---
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 b1c9bbbabc9..313ff42cd84 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