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 53F93200C4D for ; Wed, 5 Apr 2017 18:40:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 52B21160B94; Wed, 5 Apr 2017 16:40:49 +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 98CF4160B76 for ; Wed, 5 Apr 2017 18:40:48 +0200 (CEST) Received: (qmail 4515 invoked by uid 500); 5 Apr 2017 16:40:42 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 4499 invoked by uid 99); 5 Apr 2017 16:40:42 -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; Wed, 05 Apr 2017 16:40:42 +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 9A50DC0115; Wed, 5 Apr 2017 16:40:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-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 HtEr6Y703drf; Wed, 5 Apr 2017 16:40:40 +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 84BBB5F295; Wed, 5 Apr 2017 16:40:39 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DDD94E0185; Wed, 5 Apr 2017 16:40:38 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id B2AF5C400C3; Wed, 5 Apr 2017 16:40:38 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============0099994050130398943==" MIME-Version: 1.0 Subject: Re: Review Request 58086: HIVE-16334 Query lock contains the query string, which can cause OOM on ZooKeeper From: Vihang Karajgaonkar To: Barna Zsombor Klara , Marta Kuczora , Aihua Xu , Miklos Csanady , Chaoyu Tang Cc: Peter Vary , hive , Vihang Karajgaonkar Date: Wed, 05 Apr 2017 16:40:38 -0000 Message-ID: <20170405164038.56253.79841@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Vihang Karajgaonkar X-ReviewGroup: hive X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/58086/ X-Sender: Vihang Karajgaonkar X-ReviewBoard-ShipIt: 1 References: <20170330180133.31070.75677@reviews-vm2.apache.org> In-Reply-To: <20170330180133.31070.75677@reviews-vm2.apache.org> Reply-To: Vihang Karajgaonkar X-ReviewRequest-Repository: hive-git archived-at: Wed, 05 Apr 2017 16:40:49 -0000 --===============0099994050130398943== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/58086/#review171135 ----------------------------------------------------------- Fix it, then Ship it! Thanks for the patch Peter. Overall looks good. Couple of suggestions below common/src/java/org/apache/hadoop/hive/conf/HiveConf.java Lines 1774 (patched) Do you think we should use a large value for the default instead of -1? - Vihang Karajgaonkar On March 30, 2017, 6:01 p.m., Peter Vary wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/58086/ > ----------------------------------------------------------- > > (Updated March 30, 2017, 6:01 p.m.) > > > Review request for hive, Aihua Xu, Chaoyu Tang, Marta Kuczora, Miklos Csanady, and Barna Zsombor Klara. > > > Bugs: HIVE-16334 > https://issues.apache.org/jira/browse/HIVE-16334 > > > Repository: hive-git > > > Description > ------- > > The patch contains the following changes: > - Added a new config variable which defines the maximum length of the query string in the lock object > - When constructing the HiveLockObject gets the configuration as a new parameter > - When constructing the HiveLockObject truncates the length of the query string if it is necessary > - Updates every occurance of the HiveLockObject creation > > > Diffs > ----- > > common/src/java/org/apache/hadoop/hive/conf/HiveConf.java e12fea1 > ql/src/java/org/apache/hadoop/hive/ql/lockmgr/DummyTxnManager.java 53ee9c8 > ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveLockObject.java fff03df > ql/src/java/org/apache/hadoop/hive/ql/lockmgr/HiveTxnManagerImpl.java a371a5a > ql/src/test/org/apache/hadoop/hive/ql/lockmgr/TestDummyTxnManager.java de3b8ad > ql/src/test/org/apache/hadoop/hive/ql/lockmgr/TestEmbeddedLockManager.java 0afbc1c > ql/src/test/org/apache/hadoop/hive/ql/lockmgr/TestHiveLockObject.java 19cb129 > ql/src/test/org/apache/hadoop/hive/ql/lockmgr/zookeeper/TestZookeeperLockManager.java 3f9926e > > > Diff: https://reviews.apache.org/r/58086/diff/1/ > > > Testing > ------- > > Added new unit test to test the truncation > Updated the existing unit tests > > > Thanks, > > Peter Vary > > --===============0099994050130398943==--