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

[JDK17] Add-opens java.util.concurrent

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Met this failure UT base on JDK17:

       

      [ERROR] Errors:
      [ERROR]   TestOpenRegionFailedMemoryLeak.testOpenRegionFailedMemoryLeak:108 » InaccessibleObject Unable to make field private final java.util.concurrent.BlockingQueue java.util.concurrent.ThreadPoolExecutor.workQueue accessible: module java.base does not "opens java.util.concurrent" to unnamed module @20322d26
      [INFO]
      [ERROR] Tests run: 9, Failures: 0, Errors: 1, Skipped: 0 

      It seems that since JDK 16 this kind of access was switched to deny by default (https://openjdk.java.net/jeps/396)

       

      Attachments

        Issue Links

          Activity

            People

              tangtianhang tianhang tang
              tangtianhang tianhang tang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: