You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zg...@apache.org on 2020/08/17 02:08:38 UTC
[hbase] 01/02: HBASE-24150 Allow module tests run in parallel
(#1464)
This is an automated email from the ASF dual-hosted git repository.
zghao pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/hbase.git
commit 4d689f0a72fddc425219ea396e27172d699a350c
Author: Michael Stack <sa...@users.noreply.github.com>
AuthorDate: Thu Apr 9 14:41:41 2020 -0700
HBASE-24150 Allow module tests run in parallel (#1464)
Pass --threads=2 to mvn when yetus runs so some parallelism
when dependencies allow.
Signed-off-by: Nick Dimiduk <nd...@apache.org>
Signed-off-by: Viraj Jasani <vj...@apache.org>
---
dev-support/hbase-personality.sh | 5 ++++-
dev-support/hbase_nightly_source-artifact.sh | 2 +-
pom.xml | 4 ++--
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh
index d0e0f2d..d87eea6 100755
--- a/dev-support/hbase-personality.sh
+++ b/dev-support/hbase-personality.sh
@@ -140,7 +140,10 @@ function personality_modules
clear_personality_queue
- extra="-DHBasePatchProcess"
+ # 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
+ extra="--threads=2 -DHBasePatchProcess"
if [[ "${PATCH_BRANCH}" = branch-1* ]]; then
extra="${extra} -Dhttps.protocols=TLSv1.2"
fi
diff --git a/dev-support/hbase_nightly_source-artifact.sh b/dev-support/hbase_nightly_source-artifact.sh
index cd17a32..87c3f3f 100755
--- a/dev-support/hbase_nightly_source-artifact.sh
+++ b/dev-support/hbase_nightly_source-artifact.sh
@@ -172,7 +172,7 @@ fi
cd "${unpack_dir}"
echo "Follow the ref guide section on making a RC: Step 8 Build the binary tarball."
-if mvn -DskipTests -Prelease --batch-mode -Dmaven.repo.local="${m2_tarbuild}" clean install \
+if mvn --threads=2 -DskipTests -Prelease --batch-mode -Dmaven.repo.local="${m2_tarbuild}" clean install \
assembly:single >"${working_dir}/srctarball_install.log" 2>&1; then
for artifact in "${unpack_dir}"/hbase-assembly/target/hbase-*-bin.tar.gz; do
if [ -f "${artifact}" ]; then
diff --git a/pom.xml b/pom.xml
index cd21e05..c585d6f 100755
--- a/pom.xml
+++ b/pom.xml
@@ -3852,8 +3852,8 @@
<id>hbase.apache.org</id>
<name>HBase Website at hbase.apache.org</name>
<!-- On why this is the tmp dir and not hbase.apache.org, see
- https://issues.apache.org/jira/browse/HBASE-7593?focusedCommentId=13555866&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13555866
- -->
+ https://issues.apache.org/jira/browse/HBASE-7593?focusedCommentId=13555866&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13555866
+ -->
<url>file:///tmp</url>
</site>
</distributionManagement>