Skip to content

Commit

Permalink
HBASE-28773 Failed to start HBase MiniCluster when running UT with JD…
Browse files Browse the repository at this point in the history
…K 17 in hbase-hbck2 (#145)

- As a generic fix we have sync'ed jvm flags from bin/hbase in main repo instead of having only specific ones needed by the code.

Signed-off-by: Istvan Toth <[email protected]>
Reviewed-by: Peng Lu <[email protected]>
  • Loading branch information
NihalJain authored Aug 13, 2024
1 parent ff8dc42 commit 075ec30
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,21 @@

<jacocoArgLine/>
<hbase-surefire.argLine>-Djava.security.manager=allow</hbase-surefire.argLine>
<!-- Currently, all of these options are known to be required by the test cases -->
<hbase-surefire.jdk11.flags>--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED</hbase-surefire.jdk11.flags>
<!-- Keep in sync with jvm flags in bin/hbase in main repo; Copied from there! -->
<hbase-surefire.jdk11.flags>-Dorg.apache.hbase.thirdparty.io.netty.tryReflectionSetAccessible=true
--add-modules jdk.unsupported
--add-opens java.base/java.io=ALL-UNNAMED
--add-opens java.base/java.nio=ALL-UNNAMED
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/jdk.internal.ref=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.util.concurrent=ALL-UNNAMED
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED
--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>
<hbase-surefire.jdk17.flags/>
</properties>
<dependencyManagement>
Expand Down

0 comments on commit 075ec30

Please sign in to comment.