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 1C693200B4D for ; Sat, 9 Jul 2016 05:43:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1B0F9160A77; Sat, 9 Jul 2016 03:43:36 +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 60BD4160A5A for ; Sat, 9 Jul 2016 05:43:35 +0200 (CEST) Received: (qmail 88446 invoked by uid 500); 9 Jul 2016 03:43:34 -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 88433 invoked by uid 99); 9 Jul 2016 03:43:34 -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; Sat, 09 Jul 2016 03:43:34 +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 9F61C1A5311 for ; Sat, 9 Jul 2016 03:43:33 +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 BPVB8XMQ9uZM for ; Sat, 9 Jul 2016 03:43:31 +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 61E9A5F46F for ; Sat, 9 Jul 2016 03:43:31 +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 u693hNK6028600; Sat, 9 Jul 2016 03:43:24 GMT Message-Id: <201607090343.u693hNK6028600@ip-10-146-233-104.ec2.internal> Date: Sat, 9 Jul 2016 03:43:23 +0000 From: "Juan Yu (Code Review)" To: impala-cr@cloudera.com, dev@impala.incubator.apache.org CC: Alan Choi , Dan Hecht , Huaisi Xu , Sailesh Mukil , Henry Robinson Reply-To: jyu@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-CR=5D=28cdh5-trunk=29_IMPALA-3575=3A_Add_retry_to_backend_connection_request_and_rpc_timeout=0A?= X-Gerrit-Change-Id: Id6723cfe58df6217f4a9cdd12facd320cbc24964 X-Gerrit-ChangeURL: X-Gerrit-Commit: cc3cb38a705751b9d030e734ea371e0097230b19 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: Sat, 09 Jul 2016 03:43:36 -0000 Juan Yu has posted comments on this change. Change subject: IMPALA-3575: Add retry to backend connection request and rpc timeout ...................................................................... Patch Set 21: (15 comments) http://gerrit.cloudera.org:8080/#/c/3343/21/be/src/runtime/client-cache.h File be/src/runtime/client-cache.h: PS21, Line 227: is > delete "is" Done Line 304: TNetworkAddress address_; > can't we get this from client_->address()? "client_" is not an instance of ThriftClientImpl http://gerrit.cloudera.org:8080/#/c/3343/21/be/src/runtime/exec-env.cc File be/src/runtime/exec-env.cc: PS21, Line 134: 300000 > Is there a short comment you could write to justify how this was chosen (5 Done PS21, Line 134: The time after " : "which a backend client send/recv RPC call will timeout. > The send/recv connection timeout in milliseconds for a backend client RPC. This is the underlying TSocket send/recv call timeout, not connection timeout. PS21, Line 138: > same Done PS21, Line 157: 0 > why is this 0? (wait_ms) This is for retry opening connection, usually each retry will take several seconds. waiting even longer won't help much. PS21, Line 162: 100 > how was this chosen? I'll set this to 0. Line 223: "", !FLAGS_ssl_client_ca_certificate.empty())), > not your change, but it's really unfortunate we duplicate this code. let's I'll add a Todo here. http://gerrit.cloudera.org:8080/#/c/3343/21/be/src/testutil/fault-injection-util.h File be/src/testutil/fault-injection-util.h: PS21, Line 36: RPC_RANDOM > comment that this must be last Done PS21, Line 39: call > delete Done PS21, Line 40: timeout > this is the recv connection timeout, correct? if so, how about saying "recv Done PS21, Line 41: RpcCallType my_type, int32_t rpc_type, int32_t delay_ms > document these. Done PS21, Line 44: rpc_type == RPC_NULL > what is specifying RPC_NULL used for? Just for easy testing, you can easily enable disable the fault injection by changing the value, no need to add/remove the startup flag. In the future, we could change this value dynamically to do more testing. Line 50: FLAGS_fault_injection_rpc_type, FLAGS_fault_injection_rpc_delay_ms) > why pass these as arguments rather than just having InjectRpcDelay() read t Similar reason as above, we could test with dynamic values without the need to restart cluster. http://gerrit.cloudera.org:8080/#/c/3343/21/tests/custom_cluster/test_rpc_timeout.py File tests/custom_cluster/test_rpc_timeout.py: Line 119: self.execute_query_verify_metrics(self.TEST_QUERY, 10) > how long do all these tests take to execute? let's run them only in exhaus About 5 minutes. ok, I'll change to only execute in exhaustive mode. -- To view, visit http://gerrit.cloudera.org:8080/3343 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: Id6723cfe58df6217f4a9cdd12facd320cbc24964 Gerrit-PatchSet: 21 Gerrit-Project: Impala Gerrit-Branch: cdh5-trunk Gerrit-Owner: Juan Yu Gerrit-Reviewer: Alan Choi Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Henry Robinson Gerrit-Reviewer: Huaisi Xu Gerrit-Reviewer: Juan Yu Gerrit-Reviewer: Sailesh Mukil Gerrit-HasComments: Yes