[ https://issues.apache.org/jira/browse/HBASE-19210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16250684#comment-16250684 ]
Ted Yu commented on HBASE-19210: -------------------------------- Modified the test slightly by inserting a legal call: {code} diff --git a/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestNamespacesInstanceResource.java b/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestNamespacesInsta index 9c724cd..3af50df 100644 --- a/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestNamespacesInstanceResource.java +++ b/hbase-rest/src/test/java/org/apache/hadoop/hbase/rest/TestNamespacesInstanceResource.java @@ -270,13 +270,17 @@ public class TestNamespacesInstanceResource { String jsonString = jsonMapper.writeValueAsString(model2); response = client.put(namespacePath2, Constants.MIMETYPE_XML, Bytes.toBytes(jsonString)); assertEquals(400, response.getCode()); + // Create namespace via XML and JSON. + response = client.post(namespacePath1, Constants.MIMETYPE_XML, toXML(model1)); + assertEquals(201, response.getCode()); + response = client.post(namespacePath3, Constants.MIMETYPE_PROTOBUF, toXML(model3)); assertEquals(500, response.getCode()); NamespaceDescriptor nd1 = findNamespace(admin, NAMESPACE1); NamespaceDescriptor nd2 = findNamespace(admin, NAMESPACE2); NamespaceDescriptor nd3 = findNamespace(admin, NAMESPACE3); - assertNull(nd1); + assertNotNull(nd1); assertNull(nd2); assertNull(nd3); } {code} TestNamespacesInstanceResource#testInvalidNamespacePostsAndPuts, run standalone, passed. Meaning REST server responds to legal request. > TestNamespacesInstanceResource fails > ------------------------------------ > > Key: HBASE-19210 > URL: https://issues.apache.org/jira/browse/HBASE-19210 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Assignee: Ted Yu > Fix For: 2.0.0-beta-1 > > Attachments: 19210.v1.txt, 19210.v1.txt, 19210.v2.txt, 19210.v3.txt, > HBASE-19210.WIP.patch > > > This is the top flaky test. > The following can be reproduced: > {code} > java.net.SocketException: Connection reset > at > org.apache.hadoop.hbase.rest.TestNamespacesInstanceResource.testInvalidNamespacePostsAndPuts(TestNamespacesInstanceResource.java:271) > {code} > With commit e320df5a0c267258c03909da8d0eee4c0e287532, the test passes. > With commit 5facaded902a13556952b1f9d26b768cb86e6599, the test fails. -- This message was sent by Atlassian JIRA (v6.4.14#64029)