Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-26038 Support JDK17
  3. HBASE-26047

[JDK17] Track JDK17 unit test failures

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      As of now, there are still two failed unit tests after exporting JDK internal modules and the modifier access hack.

      [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)
      
      
      

      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.

      Attachments

        Issue Links

          Activity

            People

              xytss123 Yutong Xiao
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: