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 5FDAF200BC0 for ; Tue, 15 Nov 2016 20:48:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5E68F160B03; Tue, 15 Nov 2016 19:48:04 +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 AAACA160AF2 for ; Tue, 15 Nov 2016 20:48:03 +0100 (CET) Received: (qmail 73594 invoked by uid 500); 15 Nov 2016 19:48:03 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 73583 invoked by uid 99); 15 Nov 2016 19:48:02 -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; Tue, 15 Nov 2016 19:48:02 +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 2BFF1C0D53 for ; Tue, 15 Nov 2016 19:48:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=6.31 tests=[RDNS_DYNAMIC=0.363, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-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 XHsHGMwHa44J for ; Tue, 15 Nov 2016 19:47:59 +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 mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 440195F5CD for ; Tue, 15 Nov 2016 19:47:59 +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 uAFJlwWP001063; Tue, 15 Nov 2016 19:47:58 GMT Message-Id: <201611151947.uAFJlwWP001063@ip-10-146-233-104.ec2.internal> Date: Tue, 15 Nov 2016 19:47:57 +0000 From: "Alex Behm (Code Review)" To: Taras Bobrovytsky , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Matthew Jacobs , Michael Brown Reply-To: alex.behm@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_Preview=3A_IMPALA-4467=3A_Add_support_for_CRUD_operations_in_stress_test=0A?= X-Gerrit-Change-Id: Ia2aafdc6851cc0e1677a3c668d3350e47c4bfe40 X-Gerrit-ChangeURL: X-Gerrit-Commit: e70f2e12de6b99e8aa476d600e768fe894b9c6ec In-Reply-To: References: 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: Tue, 15 Nov 2016 19:48:04 -0000 Alex Behm has posted comments on this change. Change subject: Preview: IMPALA-4467: Add support for CRUD operations in stress test ...................................................................... Patch Set 1: (16 comments) Looks like it's going in the right direction. Most comments are questions. Might be good to outline the flow of a new Kudu stress run so it's easier to follow for reviewers. Maybe in a top-level comment inside concurrent_select.py http://gerrit.cloudera.org:8080/#/c/5093/1/tests/stress/concurrent_select.py File tests/stress/concurrent_select.py: Line 680: # Query to run before worst_case_sql to get the worst case performance What's worst_case_sql? Can you give a little more flavor to the comment? I'm not really sure why this setup query is needed. Also consider that the setup query itself may fail/crash which might complicate things. Line 688: self.options = {} needs a comment Line 691: self.modifies_table = False let's introduce a stmt_type enum that can have values like SELECT/INSERT/UPSERT/DELETE/COMPUTE_STATS etc. Line 694: self.MIN_INT = 10 var names are not very telling, what are these numbers? Line 832: raise seems like we intentionally did not raise before? Line 942: LOG.debug("Result set empty for query with id %s", Another possible use of stmt_type Line 1239: try: we can use the stmt_type here to only run explain for those stmts that support it (i.e. anything except compute stats). Line 1356: def clean_up_database(cursor): reset_database? "clean up" sounds like DROP DATABASE CASCADE Line 1357: LOG.info("Cleaning up {0} database".format(cursor.db_name)) needs comment Line 1360: if not table.name.endswith("_original"): seems simpler to move the modified tables into a new database, then you don't need to check "_original" everywhere Line 1371: if len(table.primary_keys) < 1: add comment: only run for Kudu tables which must have a primary key Line 1373: # For now we will not handle the case in a special way where several columns are a Why? Seems easy enough to do. Line 1376: if primary_key.exact_type not in (TinyInt, SmallInt, BigInt): Why this restriction? Line 1383: if table.name + "_original" in set(table.name for table in tables): What's the motivation for this? We might be able to achieve the same thing in a different way. Having a query represent two queries seems somewhat abstraction breaking. Also, for UPSERT it's ok of the keys already exist. I think wen to explicitly also test the path where PKs already exist. Line 1433: drop_query.sql = "DROP STATS {0}".format(table.name) why drop? we're not checking the results anyway Line 1438: compute_query.name = "compute_stats_{0}".format(table.name) can you add the mt_dop option as part of the name? -- To view, visit http://gerrit.cloudera.org:8080/5093 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ia2aafdc6851cc0e1677a3c668d3350e47c4bfe40 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Taras Bobrovytsky Gerrit-Reviewer: Alex Behm Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Michael Brown Gerrit-HasComments: Yes