Skip to content

Commit

Permalink
HBASE-28723 [JDK17] TestSecureIPC fails under JDK17 (#6072)
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Mei <meiyi@apache.org>
  • Loading branch information
Apache9 authored Jul 13, 2024
1 parent bb5d93e commit 9dee538
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,14 @@
"-Djava.library.path=${hadoop.library.path};${java.library.path}"
-Dorg.apache.hbase.thirdparty.io.netty.leakDetection.level=advanced
-Dio.opentelemetry.context.enableStrictContext=true</hbase-surefire.cygwin-argLine>
<!-- Keep these options in sync with add_jdk11_jvm_flags() in bin/hbase.
Currently, all of these options are known to be required by HBase, and not the test cases -->
<!--
Keep these jdk11/jdk17 options in sync with add_jdk11_jvm_flags() in bin/hbase, except the
below ones which are only used in test code
'java.base/jdk.internal.util.random' is required by the test code
'java.base/sun.security.x509' and 'java.base/sun.security.util' are required by
TestLdapHttpServer, see HBASE-28341
'java.base/java.net' is required by TestSecureIPC, see HBASE-28723
-->
<hbase-surefire.jdk11.flags>-Dorg.apache.hbase.thirdparty.io.netty.tryReflectionSetAccessible=true
--add-modules jdk.unsupported
--add-opens java.base/java.io=ALL-UNNAMED
Expand All @@ -746,11 +752,10 @@
--add-exports java.security.jgss/sun.security.krb5=ALL-UNNAMED
--add-exports java.base/sun.net.dns=ALL-UNNAMED
--add-exports java.base/sun.net.util=ALL-UNNAMED</hbase-surefire.jdk11.flags>
<!-- java.base/jdk.internal.util.random=ALL-UNNAMED is required by the test code, so we do not
need this in bin/hbase -->
<hbase-surefire.jdk17.flags>--add-opens java.base/jdk.internal.util.random=ALL-UNNAMED
--add-opens java.base/sun.security.x509=ALL-UNNAMED
--add-opens java.base/sun.security.util=ALL-UNNAMED</hbase-surefire.jdk17.flags>
--add-opens java.base/sun.security.util=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED</hbase-surefire.jdk17.flags>
<!-- Surefire argLine defaults to Linux, cygwin argLine is used in the os.windows profile -->
<argLine>${hbase-surefire.argLine} @{jacocoArgLine}</argLine>
<extra.enforcer.version>1.5.1</extra.enforcer.version>
Expand Down

0 comments on commit 9dee538

Please sign in to comment.