You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ra...@apache.org on 2024/03/02 06:27:31 UTC

(hbase) branch branch-2 updated: HBASE-28350 [JDK17] Unable to run hbase-it tests with JDK 17 (#5712)

This is an automated email from the ASF dual-hosted git repository.

rajeshbabu 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 762a5165920 HBASE-28350 [JDK17] Unable to run hbase-it tests with JDK 17 (#5712)
762a5165920 is described below

commit 762a516592054d6dd78d24e3c2786957a9c428c6
Author: Rajeshbabu Chintaguntla <ra...@apache.org>
AuthorDate: Thu Feb 29 15:23:33 2024 +0530

    HBASE-28350 [JDK17] Unable to run hbase-it tests with JDK 17 (#5712)
---
 hbase-it/pom.xml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/hbase-it/pom.xml b/hbase-it/pom.xml
index 4009ccba07f..78ceb6f509f 100644
--- a/hbase-it/pom.xml
+++ b/hbase-it/pom.xml
@@ -37,6 +37,8 @@
     <integrationtest.include>**/IntegrationTest*.java</integrationtest.include>
     <!-- To Run Tests with a particular Xmx Value use -Dfailsafe.Xmx=XXXg -->
     <failsafe.Xmx>4g</failsafe.Xmx>
+    <failsafe.jdk8.flags>-XX:+CMSClassUnloadingEnabled</failsafe.jdk8.flags>
+    <failsafe.profile.overrides>${failsafe.jdk8.flags}</failsafe.profile.overrides>
     <!-- To run a single integration test, use -Dit.test=IntegrationTestXXX -->
   </properties>
 
@@ -293,7 +295,7 @@
                  I believe it is a failsafe bug, we may consider using surefire -->
           <forkedProcessTimeoutInSeconds>1800</forkedProcessTimeoutInSeconds>
           <argLine>-enableassertions -Xmx${failsafe.Xmx}
-                -Djava.security.egd=file:/dev/./urandom -XX:+CMSClassUnloadingEnabled
+	         -Djava.security.egd=file:/dev/./urandom ${failsafe.profile.overrides}
                 -verbose:gc -XX:+PrintCommandLineFlags  -XX:+PrintFlagsFinal @{jacocoArgLine}</argLine>
         </configuration>
       </plugin>
@@ -346,6 +348,10 @@
       <activation>
         <jdk>[1.11,)</jdk>
       </activation>
+      <properties>
+        <failsafe.profile.overrides>${hbase-surefire.jdk11.flags}</failsafe.profile.overrides>
+      </properties>
+
       <dependencies>
         <dependency>
           <groupId>com.sun.xml.ws</groupId>