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 C631E200BF4 for ; Fri, 2 Dec 2016 03:16:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C4F46160B0B; Fri, 2 Dec 2016 02:16: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 18BD9160B10 for ; Fri, 2 Dec 2016 03:16:43 +0100 (CET) Received: (qmail 1486 invoked by uid 500); 2 Dec 2016 02:16:43 -0000 Mailing-List: contact commits-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 commits@impala.incubator.apache.org Received: (qmail 1467 invoked by uid 99); 2 Dec 2016 02:16:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2016 02:16:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C3D70180652 for ; Fri, 2 Dec 2016 02:16:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Jm5XHhrTa1RJ for ; Fri, 2 Dec 2016 02:16:40 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 1A7725FAEE for ; Fri, 2 Dec 2016 02:16:39 +0000 (UTC) Received: (qmail 1172 invoked by uid 99); 2 Dec 2016 02:16:39 -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; Fri, 02 Dec 2016 02:16:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 428A6E69B1; Fri, 2 Dec 2016 02:16:39 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kwho@apache.org To: commits@impala.incubator.apache.org Date: Fri, 02 Dec 2016 02:16:39 -0000 Message-Id: <678c330b1fd3456fb79bf7d0b68b3657@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/6] incubator-impala git commit: IMPALA-4562: Fix for crash on kerberized clusters w/o Kudu support archived-at: Fri, 02 Dec 2016 02:16:44 -0000 Repository: incubator-impala Updated Branches: refs/heads/master 83f777da7 -> da34ce978 IMPALA-4562: Fix for crash on kerberized clusters w/o Kudu support commit de88f0c4af3a07ae6bd6b8c94edcb8748468f522 for "IMPALA-4497: Fix Kudu client crash w/ SASL initialization" causes a crash on secure clusters where kudu is not supported. kudu::client::DisableSaslInitialization() from libkudu_client.so.0 impala::InitAuth(std::string const&) () impala::InitCommonRuntime() () ImpaladMain(int, char**) () main () This ensures Impala does not call the Kudu client to handle SASL init on systems where libkudu_client.so is a stub. Change-Id: Ib517d17ab12e215fe87f35bc5d03cdda736ff672 Reviewed-on: http://gerrit.cloudera.org:8080/5295 Reviewed-by: Henry Robinson Tested-by: Internal Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/1b8fede3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/1b8fede3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/1b8fede3 Branch: refs/heads/master Commit: 1b8fede3b5b3f5aff9d3fb3ac74f956da870186d Parents: 83f777d Author: Matthew Jacobs Authored: Wed Nov 30 16:25:51 2016 -0800 Committer: Internal Jenkins Committed: Thu Dec 1 21:06:49 2016 +0000 ---------------------------------------------------------------------- be/src/rpc/authentication.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/1b8fede3/be/src/rpc/authentication.cc ---------------------------------------------------------------------- diff --git a/be/src/rpc/authentication.cc b/be/src/rpc/authentication.cc index cf6432a..db0e608 100644 --- a/be/src/rpc/authentication.cc +++ b/be/src/rpc/authentication.cc @@ -643,8 +643,10 @@ Status InitAuth(const string& appname) { // Impala's SASL initialization. This must be called before any KuduClients are // created to ensure that Kudu doesn't init SASL first, and this returns an error if // Kudu has already initialized SASL. - KUDU_RETURN_IF_ERROR(kudu::client::DisableSaslInitialization(), - "Unable to disable Kudu SASL initialization."); + if (impala::KuduIsAvailable()) { + KUDU_RETURN_IF_ERROR(kudu::client::DisableSaslInitialization(), + "Unable to disable Kudu SASL initialization."); + } // Add our auxprop plugin, which gives us a hook before authentication int rc = sasl_auxprop_add_plugin(IMPALA_AUXPROP_PLUGIN.c_str(), &ImpalaAuxpropInit);