[ 
https://issues.apache.org/jira/browse/HBASE-29618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Istvan Toth resolved HBASE-29618.
---------------------------------
    Resolution: Not A Problem

Seems like this gets logged when Surefire is checking the classpath to find the 
tests to run.

The same does not appear in the actual test debug output.

> java.nio.Bits#unaligned() check fails on Java 21
> ------------------------------------------------
>
>                 Key: HBASE-29618
>                 URL: https://issues.apache.org/jira/browse/HBASE-29618
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Major
>
> Which is strange, as we're already opening the mentioned  module for JDK17+
> {noformat}
> 2025-09-22T07:42:38,110 WARN  [main {}] unsafe.HBasePlatformDependent(179): 
> java.nio.Bits#unaligned() check failed.Unsafe based read/write of primitive 
> types won't be used
> java.lang.reflect.InaccessibleObjectException: Unable to make static boolean 
> java.nio.Bits.unaligned() accessible: module java.base does not "opens 
> java.nio" to unnamed module @430d4c99
>       at 
> java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:391)
>  ~[?:?]
>       at 
> java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:367)
>  ~[?:?]
>       at 
> java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:315)
>  ~[?:?]
>       at java.lang.reflect.Method.checkCanSetAccessible(Method.java:203) 
> ~[?:?]
>       at java.lang.reflect.Method.setAccessible(Method.java:197) ~[?:?]
>       at 
> org.apache.hadoop.hbase.unsafe.HBasePlatformDependent.checkUnaligned(HBasePlatformDependent.java:176)
>  ~[hbase-unsafe-4.1.12.jar:4.1.12]
>       at 
> org.apache.hadoop.hbase.unsafe.HBasePlatformDependent.<clinit>(HBasePlatformDependent.java:49)
>  ~[hbase-unsafe-4.1.12.jar:4.1.12]
>       at org.apache.hadoop.hbase.util.Bytes.<clinit>(Bytes.java:127) 
> ~[classes/:?]
>       at 
> org.apache.hadoop.hbase.HBaseTestingUtil.<clinit>(HBaseTestingUtil.java:1609) 
> ~[test-classes/:?]
>       at 
> org.apache.hadoop.hbase.io.hfile.bucket.TestPrefetchPersistence.<clinit>(TestPrefetchPersistence.java:80)
>  ~[test-classes/:?]
>       at jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method) 
> ~[?:?]
>       at jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160) 
> ~[?:?]
> ...
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to