You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Matt Warhaftig (JIRA)" <ji...@apache.org> on 2015/10/12 02:26:05 UTC

[jira] [Commented] (HBASE-14560) TestNamespacesInstanceModel#testToXML fails when JDK 1.8 is used

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

Matt Warhaftig commented on HBASE-14560:
----------------------------------------

Thanks Ted for finding and reporting this issue.  

A later ticket, HBASE-14584, got more love and a potential patch even though your ticket is earlier.

> TestNamespacesInstanceModel#testToXML fails when JDK 1.8 is used
> ----------------------------------------------------------------
>
>                 Key: HBASE-14560
>                 URL: https://issues.apache.org/jira/browse/HBASE-14560
>             Project: HBase
>          Issue Type: Test
>            Reporter: Ted Yu
>            Assignee: Matt Warhaftig
>            Priority: Minor
>
> From https://builds.apache.org/job/HBase-1.3/jdk=latest1.8,label=Hadoop/237/consoleFull :
> {code}
> org.apache.hadoop.hbase.rest.model.TestNamespacesInstanceModel
> testToXML(org.apache.hadoop.hbase.rest.model.TestNamespacesInstanceModel)  Time elapsed: 0.017 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<...perties><entry><key>[NAME</key><value>testNamespace</value></entry><entry><key>KEY_2</key><value>VALUE_2</value></entry><entry><key>KEY_1</key><value>VALUE_1]</value></entry></pr...> but was:<...perties><entry><key>[KEY_1</key><value>VALUE_1</value></entry><entry><key>KEY_2</key><value>VALUE_2</value></entry><entry><key>NAME</key><value>testNamespace]</value></entry></pr...>
> 	at junit.framework.Assert.assertEquals(Assert.java:100)
> 	at junit.framework.Assert.assertEquals(Assert.java:107)
> 	at junit.framework.TestCase.assertEquals(TestCase.java:269)
> 	at org.apache.hadoop.hbase.rest.model.TestModelBase.testToXML(TestModelBase.java:115)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> {code}
> The above test failure can be reproduced locally.
> It was likely caused by the different behavior w.r.t. JAXBContext between JDK 1.7 and 1.8



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)