Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-22972 [JDK11] Support JDK11 LTS in HBase
  3. HBASE-22536

TestForeignExceptionSerialization fails when run on JDK11

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.2.0, 2.3.0, 2.1.6
    • Component/s: java
    • Labels:

      Description

      When built on Java 8 and unit tests are run on Java 11, TestForeignExceptionSerialization fails. A sample stacktrace:

       Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.546 s <<< FAILURE! - in org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization
      testRemoteFromLocal(org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization) Time elapsed: 0.084 s <<< FAILURE!
      org.junit.internal.ArrayComparisonFailure: Local stack trace got corrupted: arrays first differed at element [0]; expected: java.lang.StackTraceElement<org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:73)> but was: java.lang.StackTraceElement<org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:73)>
      at org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:78)
      Caused by: java.lang.AssertionError: expected: java.lang.StackTraceElement<org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:73)> but was: java.lang.StackTraceElement<org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:73)>
      at org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:78)

        Attachments

        1. hbase-22536.master.002.patch
          3 kB
          Sakthi
        2. hbase-22536.master.001.patch
          3 kB
          Sakthi

          Activity

            People

            • Assignee:
              sakthi Sakthi
              Reporter:
              sakthi Sakthi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: