Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5DC04200D61 for ; Tue, 14 Nov 2017 04:03:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5C2E0160BF3; Tue, 14 Nov 2017 03:03:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AF1A0160C06 for ; Tue, 14 Nov 2017 04:03:04 +0100 (CET) Received: (qmail 43182 invoked by uid 500); 14 Nov 2017 03:03:03 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 43119 invoked by uid 99); 14 Nov 2017 03:03:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2017 03:03:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BA95C1A11D2 for ; Tue, 14 Nov 2017 03:03:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id VNx4TwnXuAgO for ; Tue, 14 Nov 2017 03:03:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 62B0160EF1 for ; Tue, 14 Nov 2017 03:03:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9D0EAE00C9 for ; Tue, 14 Nov 2017 03:03:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5D40E240D6 for ; Tue, 14 Nov 2017 03:03:00 +0000 (UTC) Date: Tue, 14 Nov 2017 03:03:00 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-19210) TestNamespacesInstanceResource fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Nov 2017 03:03:05 -0000 [ https://issues.apache.org/jira/browse/HBASE-19210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16250739#comment-16250739 ] Ted Yu commented on HBASE-19210: -------------------------------- I run this code by itself which passed (note the legitimate call at the end): {code} @Test public void testInvalidNamespacePuts() throws IOException, JAXBException { Admin admin = TEST_UTIL.getAdmin(); Response response; // Check that namespaces don't exist via non-REST call. assertNull(findNamespace(admin, NAMESPACE1)); assertNull(findNamespace(admin, NAMESPACE2)); // Test cannot PUT (alter) non-existent namespace. byte[] json = Bytes.toBytes(jsonMapper.writeValueAsString(model2)); response = client.put(namespacePath2, Constants.MIMETYPE_JSON, json); assertEquals(403, response.getCode()); // Try REST post and puts with invalid content. response = client.post(namespacePath1, Constants.MIMETYPE_JSON, toXML(model1)); assertEquals(500, response.getCode()); response = client.put(namespacePath2, Constants.MIMETYPE_XML, json); assertEquals(400, response.getCode()); // Create namespace via XML and JSON. response = client.post(namespacePath1, Constants.MIMETYPE_XML, toXML(model1)); assertEquals(201, response.getCode()); } {code} > 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)