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 94C4A200C31 for ; Wed, 8 Mar 2017 23:54:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9362B160B83; Wed, 8 Mar 2017 22:54:18 +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 D456A160B73 for ; Wed, 8 Mar 2017 23:54:17 +0100 (CET) Received: (qmail 69212 invoked by uid 500); 8 Mar 2017 22:54:17 -0000 Mailing-List: contact dev-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list dev@drill.apache.org Received: (qmail 69200 invoked by uid 99); 8 Mar 2017 22:54:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Mar 2017 22:54:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9E617F4B54; Wed, 8 Mar 2017 22:54:16 +0000 (UTC) From: superbstreak To: dev@drill.apache.org Reply-To: dev@drill.apache.org References: In-Reply-To: Subject: [GitHub] drill pull request #772: DRILL-5316: Check drillbits size before we attempt ... Content-Type: text/plain Message-Id: <20170308225416.9E617F4B54@git1-us-west.apache.org> Date: Wed, 8 Mar 2017 22:54:16 +0000 (UTC) archived-at: Wed, 08 Mar 2017 22:54:18 -0000 Github user superbstreak commented on a diff in the pull request: https://github.com/apache/drill/pull/772#discussion_r105046142 --- Diff: contrib/native/client/src/clientlib/drillClientImpl.cpp --- @@ -2143,6 +2146,9 @@ connectionStatus_t PooledDrillClientImpl::connect(const char* connStr, DrillUser Utils::shuffle(drillbits); // The original shuffled order is maintained if we shuffle first and then add any missing elements Utils::add(m_drillbits, drillbits); + if (m_drillbits.empty()){ + return handleConnError(CONN_FAILURE, getMessage(ERR_CONN_ZKNODBIT)); --- End diff -- Thanks, @laurentgo! A new ticket has been filed for the suggestion: [DRILL-5335](https://issues.apache.org/jira/browse/DRILL-5335) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---