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 9A4B0200B21 for ; Fri, 10 Jun 2016 23:39:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 98C38160A38; Fri, 10 Jun 2016 21:39:10 +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 E16F4160A15 for ; Fri, 10 Jun 2016 23:39:09 +0200 (CEST) Received: (qmail 295 invoked by uid 500); 10 Jun 2016 21:39:09 -0000 Mailing-List: contact dev-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@impala.incubator.apache.org Delivered-To: mailing list dev@impala.incubator.apache.org Received: (qmail 284 invoked by uid 99); 10 Jun 2016 21:39:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2016 21:39:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 80F9EC0DA6 for ; Fri, 10 Jun 2016 21:39:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.362 X-Spam-Level: X-Spam-Status: No, score=0.362 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id gNOul01WTbY8 for ; Fri, 10 Jun 2016 21:39:06 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id EFFC45F46E for ; Fri, 10 Jun 2016 21:39:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id u5ALd4Bk011191; Fri, 10 Jun 2016 21:39:04 GMT Date: Fri, 10 Jun 2016 21:39:03 +0000 From: "David Knupp (Code Review)" To: impala-cr@cloudera.com, dev@impala.incubator.apache.org Message-ID: Reply-To: dknupp@cloudera.com X-Gerrit-MessageType: newchange Subject: =?UTF-8?Q?=5BImpala-CR=5D=28cdh5-trunk=29_IMPALA-3491=3A_Use_unique_database_fixture_in_test_catalog_service_client=2Epy=2E=0A?= X-Gerrit-Change-Id: I5d6994f31d52e18e2e04aab0e34202e2c623e367 X-Gerrit-ChangeURL: X-Gerrit-Commit: b104b104dac0253aeb1d0adad791b7d50cf39ca1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.12.2 archived-at: Fri, 10 Jun 2016 21:39:10 -0000 David Knupp has uploaded a new change for review. http://gerrit.cloudera.org:8080/3366 Change subject: IMPALA-3491: Use unique_database fixture in test_catalog_service_client.py. ...................................................................... IMPALA-3491: Use unique_database fixture in test_catalog_service_client.py. Even though this is just a single test, this change introduces the unique_database test fixture that was initially created to help with concurrent tests. It's still worth to do this here because we want to update all tests to use best practices. That said, there was still a performance gain to be had here. It turns out the initial code called the cleanup_db() method from the base ImpalaTestSuite class, which in turn sets the 'sync_ddl' query option to true. Not doing this at the beginning of this test results in a roughly 40x speedup. Change-Id: I5d6994f31d52e18e2e04aab0e34202e2c623e367 --- M tests/catalog_service/test_catalog_service_client.py 1 file changed, 11 insertions(+), 19 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala refs/changes/66/3366/1 -- To view, visit http://gerrit.cloudera.org:8080/3366 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5d6994f31d52e18e2e04aab0e34202e2c623e367 Gerrit-PatchSet: 1 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: David Knupp