From 3a38fb46ec3f4da8e0570f0872049d703a8d508b Mon Sep 17 00:00:00 2001 From: stack Date: Mon, 10 Feb 2020 21:47:47 -0800 Subject: [PATCH] HBASE-23823 Run maven with more than default single thread (--threads=0.5C) ADDENDUM: Retry of reverted issue but with MaxFDLimit passed to JVM. --- dev-support/hbase-personality.sh | 6 +++++- pom.xml | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/dev-support/hbase-personality.sh b/dev-support/hbase-personality.sh index 00be1079b0..18d00aab9b 100755 --- a/dev-support/hbase-personality.sh +++ b/dev-support/hbase-personality.sh @@ -140,7 +140,11 @@ function personality_modules clear_personality_queue - extra="-DHBasePatchProcess" + # Pass maven a -T argument. Should make it run faster. Pass conservative value. + # Default is one thread. 0.5C on an apache box of 24 cores and 2 executors should + # make for 6 threads? Lets see. See below for more on -T: + # https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3 + extra="--threads=0.5C -DHBasePatchProcess" if [[ "${PATCH_BRANCH}" = branch-1* ]]; then extra="${extra} -Dhttps.protocols=TLSv1.2" fi diff --git a/pom.xml b/pom.xml index ae615139eb..743f316a76 100755 --- a/pom.xml +++ b/pom.xml @@ -1602,8 +1602,11 @@ "-Djava.library.path=${hadoop.library.path};${java.library.path}" -Dorg.apache.hbase.thirdparty.io.netty.leakDetection.level=advanced - - ${hbase-surefire.argLine} + + -XX:-MaxFDLimit ${hbase-surefire.argLine} 0.7.5.201505241946 1.0-beta-9 3.0.0-M2 -- 2.19.1