Wei-Chiu Chuang created HBASE-26047:
---------------------------------------
Summary: Track JDK17 unit test failures
Key: HBASE-26047
URL: https://issues.apache.org/jira/browse/HBASE-26047
Project: HBase
Issue Type: Sub-task
Reporter: Wei-Chiu Chuang
As of now, there are still two failed unit tests after exporting JDK internal
modules and the modifier access hack.
{noformat}
[ERROR] Tests run: 7, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 0.217 s
<<< FAILURE! - in org.apache.hadoop.hbase.io.TestHeapSize
[ERROR] org.apache.hadoop.hbase.io.TestHeapSize.testSizes Time elapsed: 0.041
s <<< FAILURE!
java.lang.AssertionError: expected:<160> but was:<152>
at
org.apache.hadoop.hbase.io.TestHeapSize.testSizes(TestHeapSize.java:335)
[ERROR] org.apache.hadoop.hbase.io.TestHeapSize.testNativeSizes Time elapsed:
0.01 s <<< FAILURE!
java.lang.AssertionError: expected:<72> but was:<64>
at
org.apache.hadoop.hbase.io.TestHeapSize.testNativeSizes(TestHeapSize.java:134)
[INFO] Running org.apache.hadoop.hbase.io.Tes
[ERROR] Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.697 s
<<< FAILURE! - in org.apache.hadoop.hbase.ipc.TestBufferChain
[ERROR] org.apache.hadoop.hbase.ipc.TestBufferChain.testWithSpy Time elapsed:
0.537 s <<< ERROR!
java.lang.NullPointerException: Cannot enter synchronized block because
"this.closeLock" is null
at
org.apache.hadoop.hbase.ipc.TestBufferChain.testWithSpy(TestBufferChain.java:119)
{noformat}
It appears that JDK17 makes the heap size estimate different than before. Not
sure why.
TestBufferChain.testWithSpy failure might be because of yet another unexported
module.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)