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 2797C200D30 for ; Mon, 30 Oct 2017 22:36:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 264DC160BE4; Mon, 30 Oct 2017 21:36:58 +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 6DC901609D5 for ; Mon, 30 Oct 2017 22:36:57 +0100 (CET) Received: (qmail 85078 invoked by uid 500); 30 Oct 2017 21:36:56 -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 85066 invoked by uid 99); 30 Oct 2017 21:36:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2017 21:36:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9599BCDC40 for ; Mon, 30 Oct 2017 21:36:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.362 X-Spam-Level: ** X-Spam-Status: No, score=2.362 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5uxNxRhASSFS for ; Mon, 30 Oct 2017 21:36:54 +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 4C5E95FD72 for ; Mon, 30 Oct 2017 21:36:54 +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 v9ULaq13029633; Mon, 30 Oct 2017 21:36:52 GMT Message-Id: <201710302136.v9ULaq13029633@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 15 Date: Mon, 30 Oct 2017 21:36:52 +0000 From: "Alex Behm (Code Review)" To: Vuk Ercegovac , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Dan Hecht , Balazs Jeszenszky , Philip Zeyliger , Dimitris Tsirogiannis , Michael Brown X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-4704=3A_Turns_on_client_connections_when_local_catalog_initialized=2E=0A?= X-Gerrit-Change-Id: I52b881cba18a7e4533e21a78751c2e35c3d4c8a6 X-Gerrit-Change-Number: 8202 X-Gerrit-ChangeURL: X-Gerrit-Commit: 422a146e6bcde3efa005c8f13cf006a19de6b082 In-Reply-To: References: X-Gerrit-Comment-Date: Mon, 30 Oct 2017 21:36:52 +0000 Reply-To: alex.behm@cloudera.com, impala-cr@cloudera.com, marcelk@gmail.com, dhecht@cloudera.com, philip@cloudera.com, reviews@impala.incubator.apache.org, dtsirogiannis@cloudera.com, mikeb@cloudera.com, vercegovac@cloudera.com, jeszyb@gmail.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="MKrYOnB5wm4="; charset=UTF-8 archived-at: Mon, 30 Oct 2017 21:36:58 -0000 --MKrYOnB5wm4= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Alex Behm has posted comments on this change=2E ( http://gerrit=2Ecloudera= =2Eorg:8080/8202 ) Change subject: IMPALA-4704: Turns on client connection= s when local catalog initialized=2E =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E Patch Set 15: (8 comments) http://gerrit=2Ecloude= ra=2Eorg:8080/#/c/8202/15/be/src/service/frontend=2Ecc File be/src/service/= frontend=2Ecc: http://gerrit=2Ecloudera=2Eorg:8080/#/c/8202/15/be/src/serv= ice/frontend=2Ecc@31 PS15, Line 31: #ifndef NDEBUG What's the harm in alway= s compiling it in? http://gerrit=2Ecloudera=2Eorg:8080/#/c/8202/15/be/src= /service/frontend=2Ecc@256 PS15, Line 256: if (result) return true; retur= n result? http://gerrit=2Ecloudera=2Eorg:8080/#/c/8202/15/be/src/service/= impala-server=2Eh File be/src/service/impala-server=2Eh: http://gerrit=2Ec= loudera=2Eorg:8080/#/c/8202/15/be/src/service/impala-server=2Eh@125 PS15, L= ine 125: /// Initializes client RPC services=2E Must be called after Init= InternalServices=2E Is a we typically say InitInternalServices() to make it= clear it's a function http://gerrit=2Ecloudera=2Eorg:8080/#/c/8202/15/be= /src/service/impala-server=2Ecc File be/src/service/impala-server=2Ecc: ht= tp://gerrit=2Ecloudera=2Eorg:8080/#/c/8202/15/be/src/service/impala-server= =2Ecc@1541 PS15, Line 1541: // Additionally wait for the local catalog = to be initialized if the server is a Suggest rephrasing "wait" to clarify= =2E "wait" could be misinterpreted as blocking=2E Maybe say something like:= Announce the availability of this impalad coordinator once the local cata= log has been initialized=2E http://gerrit=2Ecloudera=2Eorg:8080/#/c/8202/= 15/be/src/service/impalad-main=2Ecc File be/src/service/impalad-main=2Ecc: = http://gerrit=2Ecloudera=2Eorg:8080/#/c/8202/15/be/src/service/impalad-mai= n=2Ecc@91 PS15, Line 91: Status status =3D impala_server->StartInternalSe= rvices(); As discussed, ordering is not quite right yet=2E It might make s= ense to add flags for client_services_started and internal_services_started= to address the race between opening internal/client ports and announcing t= he availability of this daemon through the membership callback=2E http://= gerrit=2Ecloudera=2Eorg:8080/#/c/8202/15/bin/start-impala-cluster=2Epy File= bin/start-impala-cluster=2Epy: http://gerrit=2Ecloudera=2Eorg:8080/#/c/82= 02/15/bin/start-impala-cluster=2Epy@81 PS15, Line 81: # For testing: list o= f comma-separated delays, in milliseconds, that delay catalog clarify which= catalog exactly http://gerrit=2Ecloudera=2Eorg:8080/#/c/8202/15/fe/src/m= ain/java/org/apache/impala/service/Frontend=2Ejava File fe/src/main/java/or= g/apache/impala/service/Frontend=2Ejava: http://gerrit=2Ecloudera=2Eorg:80= 80/#/c/8202/15/fe/src/main/java/org/apache/impala/service/Frontend=2Ejava@8= 77 PS15, Line 877: } add a final LOG=2Einfo() here declaring success (a= nd remove the one in impala-server) http://gerrit=2Ecloudera=2Eorg:8080/#= /c/8202/12/fe/src/test/java/org/apache/impala/service/FrontendTest=2Ejava F= ile fe/src/test/java/org/apache/impala/service/FrontendTest=2Ejava: http:/= /gerrit=2Ecloudera=2Eorg:8080/#/c/8202/12/fe/src/test/java/org/apache/impal= a/service/FrontendTest=2Ejava@a69 PS12, Line 69: > I was a bit surprised t= o see authorization configs here-- what was the inte Sentry can configured = in a service mode or with a file-based auth policy=2E I suppose this test w= as checking that the readiness check works regardless of auth policy=2E Not= sure how much sense that makes=2E For auth we use AuthorizationTest=2E I= 'm thinking this test doesn't make sense anymore=2E -- To view, visit h= ttp://gerrit=2Ecloudera=2Eorg:8080/8202 To unsubscribe, visit http://gerrit= =2Ecloudera=2Eorg:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: = master Gerrit-MessageType: comment Gerrit-Change-Id: I52b881cba18a7e4533e21= a78751c2e35c3d4c8a6 Gerrit-Change-Number: 8202 Gerrit-PatchSet: 15 Gerrit-O= wner: Vuk Ercegovac Gerrit-Reviewer: Alex Behm = Gerrit-Reviewer: Balazs Jeszenszky Gerrit-Reviewer: Dan Hecht Gerrit-Reviewe= r: Dimitris Tsirogiannis Gerrit-Reviewer: Mi= chael Brown Gerrit-Reviewer: Philip Zeyliger Gerrit-Reviewer: Vuk Ercegovac = Gerrit-Comment-Date: Mon, 30 Oct 2017 21:36:52 +0000 Gerrit-HasComments: Y= es --MKrYOnB5wm4=--