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 A7421200BC0 for ; Tue, 1 Nov 2016 01:40:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A5E82160B06; Tue, 1 Nov 2016 00:40:50 +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 EC37E160B05 for ; Tue, 1 Nov 2016 01:40:49 +0100 (CET) Received: (qmail 65048 invoked by uid 500); 1 Nov 2016 00:40:49 -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 65033 invoked by uid 99); 1 Nov 2016 00:40:48 -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, 01 Nov 2016 00:40:48 +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 738931A0039 for ; Tue, 1 Nov 2016 00:40:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id poHP9Vw9G9f9 for ; Tue, 1 Nov 2016 00:40:46 +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-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 825475F2F0 for ; Tue, 1 Nov 2016 00:40:46 +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 uA10ehsL002917; Tue, 1 Nov 2016 00:40:43 GMT Message-Id: <201611010040.uA10ehsL002917@ip-10-146-233-104.ec2.internal> Date: Tue, 1 Nov 2016 00:40:43 +0000 From: "Sailesh Mukil (Code Review)" To: Matthew Jacobs , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Tim Armstrong Reply-To: sailesh@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4411=3A_Kudu_inserts_violate_lock_ordering_and_could_deadlock=0A?= X-Gerrit-Change-Id: I2aa36fce78525a80a6b880e1b668105006bc1425 X-Gerrit-ChangeURL: X-Gerrit-Commit: 2f8923c63037347a04066603030b6f29cb9a956d 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, 01 Nov 2016 00:40:50 -0000 Sailesh Mukil has posted comments on this change. Change subject: IMPALA-4411: Kudu inserts violate lock ordering and could deadlock ...................................................................... Patch Set 1: Code-Review+1 (1 comment) http://gerrit.cloudera.org:8080/#/c/4895/1/be/src/service/query-exec-state.cc File be/src/service/query-exec-state.cc: PS1, Line 537: session_->kudu_latest_observed_ts = std::max( : session_->kudu_latest_observed_ts, latest_kudu_ts); > It's a good idea, though I don't think this lock is particularly highly con I just grepped through the codebase and one call in particular seems to be made in many places. "WithSession()". That function gets the session_ lock. But if it seems like an over-optimization for now, I'm fine with leaving it as it is. -- To view, visit http://gerrit.cloudera.org:8080/4895 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I2aa36fce78525a80a6b880e1b668105006bc1425 Gerrit-PatchSet: 1 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Matthew Jacobs Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Sailesh Mukil Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes