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 CCF77200B21 for ; Fri, 10 Jun 2016 21:32:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CB617160A38; Fri, 10 Jun 2016 19:32:37 +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 20E16160A15 for ; Fri, 10 Jun 2016 21:32:36 +0200 (CEST) Received: (qmail 4840 invoked by uid 500); 10 Jun 2016 19:32:36 -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 4829 invoked by uid 99); 10 Jun 2016 19:32:36 -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; Fri, 10 Jun 2016 19:32:36 +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 9C9C61A0121 for ; Fri, 10 Jun 2016 19:32:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-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-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 5SkOPp3F9_Dq for ; Fri, 10 Jun 2016 19:32:33 +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-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 3A2C25F23F for ; Fri, 10 Jun 2016 19:32:33 +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 u5AJWWsM007040; Fri, 10 Jun 2016 19:32:32 GMT Message-Id: <201606101932.u5AJWWsM007040@ip-10-146-233-104.ec2.internal> Date: Fri, 10 Jun 2016 19:32:32 +0000 From: "Huaisi Xu (Code Review)" To: impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Dimitris Tsirogiannis , Dan Hecht , Henry Robinson , Bharath Vissapragada Reply-To: hxu@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-CR=5D=28cdh5-trunk=29_IMPALA-3499=3A_Split_catalog_update=0A?= X-Gerrit-Change-Id: I176db25124a32944f2396ce8aafbed49cac95928 X-Gerrit-ChangeURL: X-Gerrit-Commit: 792603ca204109e872e6dd0f0677fad7c07851fd 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: Fri, 10 Jun 2016 19:32:38 -0000 Huaisi Xu has posted comments on this change. Change subject: IMPALA-3499: Split catalog update ...................................................................... Patch Set 17: (7 comments) No. I just used 10k as a limit. I do not have resources to test 2gb metadata. http://gerrit.cloudera.org:8080/#/c/3067/17//COMMIT_MSG Commit Message: PS17, Line 10: 500MB > The limit is 2GB, because it's a JVM limitation. Done http://gerrit.cloudera.org:8080/#/c/3067/17/be/src/service/impala-server.cc File be/src/service/impala-server.cc: PS17, Line 1252: current_topic_update_size_bytes > batch_size_bytes is better, I think Done PS17, Line 1255: if (len > 100 * 1024 * 1024 /* 100MB */) { : LOG(WARNING) << "Received large catalog update(>100mb): " : << item.key << " is " : << PrettyPrinter::Print(len, TUnit::BYTES); : } > Why print a warning at 100MB? What action would the user expect to take on Bharath said this is for supportability so we can take action on logs. I just made up 100mb,. that can be anything. PS17, Line 1273: // Refresh the lib cache entries of any added functions and data sources : if (catalog_object.type == TCatalogObjectType::FUNCTION) { : DCHECK(catalog_object.__isset.fn); : LibCache::instance()->SetNeedsRefresh(catalog_object.fn.hdfs_location); : } : if (catalog_object.type == TCatalogObjectType::DATA_SOURCE) { : DCHECK(catalog_object.__isset.data_source); : LibCache::instance()->SetNeedsRefresh(catalog_object.data_source.hdfs_location); : } > Can you leave a TODO saying that the frontend should return this informatio Could you elaborate? what exactly is left to be done in TODO? PS17, Line 1292: incremental_request > I think a new variable is warranted here, e.g.: I think it is better leave it this way. I think of the 1:1 correspondence between frontend and backend. this incremental_request is the same as incrementalRequest in frontend. PS17, Line 1429: vector(1, update_req) > nit: I think you can just write {update_req} as a list initializer. Done http://gerrit.cloudera.org:8080/#/c/3067/17/fe/src/main/java/com/cloudera/impala/service/JniFrontend.java File fe/src/main/java/com/cloudera/impala/service/JniFrontend.java: PS17, Line 164: > nit: no space before : Done -- To view, visit http://gerrit.cloudera.org:8080/3067 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I176db25124a32944f2396ce8aafbed49cac95928 Gerrit-PatchSet: 17 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Huaisi Xu Gerrit-Reviewer: Bharath Vissapragada Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Dimitris Tsirogiannis Gerrit-Reviewer: Henry Robinson Gerrit-Reviewer: Huaisi Xu Gerrit-HasComments: Yes