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

stack commented on HBASE-14584:
-------------------------------

I tried this but seemed to have no effect:
{code}
diff --git 
a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/model/NamespacesInstanceModel.java
 
b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/model/NamespacesInstanceModel.java
index b31ecf9..8b61b2c 100644
--- 
a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/model/NamespacesInstanceModel.java
+++ 
b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/model/NamespacesInstanceModel.java
@@ -25,8 +25,10 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;

+import javax.xml.bind.annotation.XmlAccessOrder;
 import javax.xml.bind.annotation.XmlAccessType;
 import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAccessorOrder;
 import javax.xml.bind.annotation.XmlRootElement;
 import javax.xml.bind.annotation.XmlTransient;

@@ -49,6 +51,7 @@ import org.apache.hadoop.hbase.rest.protobuf
  */
 @XmlRootElement(name="NamespaceProperties")
 @XmlAccessorType(XmlAccessType.FIELD)
+@XmlAccessorOrder(XmlAccessOrder.ALPHABETICAL)
 @InterfaceAudience.Private
 public class NamespacesInstanceModel implements Serializable, 
ProtobufMessageHandler {

diff --git 
a/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/model/TestNamespacesInstanceModel.java
 
b/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/model/TestNamespacesInstanceModel.java
index 52ed334..a0729b5 100644
--- 
a/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/model/TestNamespacesInstanceModel.java
+++ 
b/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/model/TestNamespacesInstanceModel.java
@@ -93,5 +93,4 @@ public class TestNamespacesInstanceModel extends 
TestModelBase<NamespacesInstanc
   public void testFromPB() throws Exception {
     checkModel(fromPB(AS_PB));
   }
-}
-
+}
{code}

I do see that order is not guaranteed marshalling and unmarshalling so I am 
going to disable this test till [~mwarhaftig] has a chance to take a look...

> TestNamespacesInstanceModel fails on jdk8
> -----------------------------------------
>
>                 Key: HBASE-14584
>                 URL: https://issues.apache.org/jira/browse/HBASE-14584
>             Project: HBase
>          Issue Type: Test
>          Components: REST, test
>            Reporter: Nick Dimiduk
>
> Noticed this in the [build 
> output|https://builds.apache.org/job/HBase-1.2/jdk=latest1.8,label=Hadoop/235/consoleFull]
>  of HBASE-12911. Seems this test has been failing for a long time, got all 
> the way back to {{6534583}}, {{master~44}} and it's still failing there. I 
> guess tests usually fail in {{hbase-server}}, so we don't often get to 
> {{hbase-rest}} module.



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

Reply via email to