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 31B8D200D10 for ; Sat, 26 Aug 2017 03:09:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2E81A16D99D; Sat, 26 Aug 2017 01:09:44 +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 746AC16D998 for ; Sat, 26 Aug 2017 03:09:43 +0200 (CEST) Received: (qmail 33223 invoked by uid 500); 26 Aug 2017 01:09:42 -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 33212 invoked by uid 99); 26 Aug 2017 01:09: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; Sat, 26 Aug 2017 01:09: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 8C2E7C1CFA for ; Sat, 26 Aug 2017 01:09:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-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 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 IfytTZZhtVrg for ; Sat, 26 Aug 2017 01:09:40 +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-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 995EF61A0B for ; Sat, 26 Aug 2017 01:09:39 +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 v7Q19aNb031647; Sat, 26 Aug 2017 01:09:36 GMT Message-Id: <201708260109.v7Q19aNb031647@ip-10-146-233-104.ec2.internal> Date: Sat, 26 Aug 2017 01:09:36 +0000 From: "John Sherman (Code Review)" To: impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Henry Robinson , Matthew Jacobs , Sailesh Mukil , Dan Hecht Reply-To: jfs@arcadiadata.com X-Gerrit-MessageType: newpatchset Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5394=3A_Change_ThriftServer=28=29_to_always_use_TAcceptQueueServer=0A?= X-Gerrit-Change-Id: I56a5f3d9cf931cff14eae7f236fea018236a6255 X-Gerrit-ChangeURL: X-Gerrit-Commit: 534c2f3d744318591fca410d68d2657633ec4c5b 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.7 archived-at: Sat, 26 Aug 2017 01:09:44 -0000 John Sherman has uploaded a new patch set (#8). Change subject: IMPALA-5394: Change ThriftServer() to always use TAcceptQueueServer ...................................................................... IMPALA-5394: Change ThriftServer() to always use TAcceptQueueServer - Previously TThreadPoolServer called getTransport() on a client from the Server thread (the thread that did the accepts). - TSaslServerTransport->getTransport() called TSaslTransport->open() - TSaslServerTransport->open() tried to negotiate SASL which calls read/write - If read/write blocks indefinitely, the TThreadPoolServer could not accept connections until tcp_keepalive kicked in. - Set the underlying TSocket's recvTimeout and sendTimeout before the TSaslServerTransport->open() and reset them to 0 after open() completes. - Added sasl_connect_tcp_timeout_ms flag that defaults to 300000 milliseconds (5 minutes) - Add the ability for TAcceptQueueServer to limit the maximum number of concurrent tasks - Added a test case to thrift-server-test to test max_concurrent_connections enforcement - Changed the remaining Thrift servers to use TAcceptQueueServer. (hs2/beeswax/network-perf-benchmark) - The timeout is still needed in TAcceptQueueServer since SetupConnection follows a similar pattern that TThreadPoolServer does. - Removed support for TThreadPool from ThriftServer() since it is no longer used anywhere. ThriftServer() now always uses TAcceptQueueServer. - Deprecated enable_accept_queue_server flag and removed supporting code. Change-Id: I56a5f3d9cf931cff14eae7f236fea018236a6255 --- M be/src/benchmarks/network-perf-benchmark.cc M be/src/common/global-flags.cc M be/src/rpc/TAcceptQueueServer.cpp M be/src/rpc/TAcceptQueueServer.h M be/src/rpc/thrift-server-test.cc M be/src/rpc/thrift-server.cc M be/src/rpc/thrift-server.h M be/src/service/impala-server.cc M be/src/transport/TSaslServerTransport.cpp M common/thrift/metrics.json 10 files changed, 148 insertions(+), 112 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/61/7061/8 -- To view, visit http://gerrit.cloudera.org:8080/7061 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: newpatchset Gerrit-Change-Id: I56a5f3d9cf931cff14eae7f236fea018236a6255 Gerrit-PatchSet: 8 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: John Sherman Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: Henry Robinson Gerrit-Reviewer: John Sherman Gerrit-Reviewer: Matthew Jacobs Gerrit-Reviewer: Sailesh Mukil