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 747AD200CF2 for ; Sat, 19 Aug 2017 01:18:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 72FF216D9D1; Fri, 18 Aug 2017 23:18:03 +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 B805F16D9CF for ; Sat, 19 Aug 2017 01:18:02 +0200 (CEST) Received: (qmail 51151 invoked by uid 500); 18 Aug 2017 23:18:02 -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 51140 invoked by uid 99); 18 Aug 2017 23:18:01 -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; Fri, 18 Aug 2017 23:18:01 +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 2FD59C0F47 for ; Fri, 18 Aug 2017 23:18:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LcVY0uz4MFtA for ; Fri, 18 Aug 2017 23:18:00 +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 802DD5F6C8 for ; Fri, 18 Aug 2017 23:17:59 +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 v7INHvf6020097; Fri, 18 Aug 2017 23:17:57 GMT Message-Id: <201708182317.v7INHvf6020097@ip-10-146-233-104.ec2.internal> Date: Fri, 18 Aug 2017 23:17:57 +0000 From: "Sailesh Mukil (Code Review)" To: Joe McDonnell , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Tim Armstrong Reply-To: sailesh@cloudera.com X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-5750=3A_Catch_exceptions_from_boost_thread_creation=0A?= X-Gerrit-Change-Id: I15a2f278dc71892b7fec09593f81b1a57ab725c0 X-Gerrit-ChangeURL: X-Gerrit-Commit: c31f326b804c84e35ffc97a09f5e4241365b240e 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: Fri, 18 Aug 2017 23:18:03 -0000 Sailesh Mukil has posted comments on this change. Change subject: IMPALA-5750: Catch exceptions from boost thread creation ...................................................................... Patch Set 2: (8 comments) Did an initial pass. http://gerrit.cloudera.org:8080/#/c/7730/1//COMMIT_MSG Commit Message: Line 8: nit: You can make it up to 72 chars per line to make this more readable. http://gerrit.cloudera.org:8080/#/c/7730/2/be/src/rpc/TAcceptQueueServer.cpp File be/src/rpc/TAcceptQueueServer.cpp: Line 226: stop_ = true; Should we throw an exception here? What's the behavior when it continues executing? http://gerrit.cloudera.org:8080/#/c/7730/2/be/src/statestore/statestored-main.cc File be/src/statestore/statestored-main.cc: Line 71: ABORT_IF_ERROR(RegisterMemoryMetrics(metrics.get(), false, nullptr, nullptr)); You also need to do: ABORT_IF_ERROR(StartMemoryMaintenanceThread()); in impalad-main.cc and catalogd-main.cc PS2, Line 72: StartMemoryMaintenanceThread(); ABORT_IF_ERROR(StartMemoryMaintenanceThread()); http://gerrit.cloudera.org:8080/#/c/7730/2/be/src/util/thread-pool.h File be/src/util/thread-pool.h: Line 46: /// -- work_function: the function to run every time an item is consumed from the queue Update comment to include 'tpool' arg. PS2, Line 184: /// TODO: add comment Comment? PS2, Line 188: DCHECK(pool == nullptr); : boost::scoped_ptr local_tpool; : local_tpool.reset(new CallableThreadPool(queue_size, &CallableThreadPool::Worker)); : RETURN_IF_ERROR(local_tpool->CreateThreads(group, thread_prefix, num_threads)); : pool.swap(local_tpool); : return Status::OK(); Why not just call the parent's Create() here? i.e. ThreadPool::Create() http://gerrit.cloudera.org:8080/#/c/7730/2/be/src/util/thread.cc File be/src/util/thread.cc: PS2, Line 319: local_thread Just call 't' for consistency with the above StartThread(). 'local_thread' sounds a bit confusing. -- To view, visit http://gerrit.cloudera.org:8080/7730 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: I15a2f278dc71892b7fec09593f81b1a57ab725c0 Gerrit-PatchSet: 2 Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-Owner: Joe McDonnell Gerrit-Reviewer: Sailesh Mukil Gerrit-Reviewer: Tim Armstrong Gerrit-HasComments: Yes