[ 
https://issues.apache.org/jira/browse/HBASE-22536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16855340#comment-16855340
 ] 

Sakthi commented on HBASE-22536:
--------------------------------

The StackTraceElement.equals method has changed in Java 11. We need to change 
our ErrorHandling.proto (StackTraceElementMessage) to accomodate 
classLoaderName, moduleName, moduleVersion as well (Will create another follow 
up jira for that). As of now this workaround to compare two StackTraceElement 
should suffice. 

> TestForeignExceptionSerialization fails when run on JDK11
> ---------------------------------------------------------
>
>                 Key: HBASE-22536
>                 URL: https://issues.apache.org/jira/browse/HBASE-22536
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Sakthi
>            Assignee: Sakthi
>            Priority: Minor
>
> When built on Java 8 and unit tests are run on Java 11, 
> TestForeignExceptionSerialization fails. A sample stacktrace:
> {code}
>  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){code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to