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 7981D200C67 for ; Mon, 15 May 2017 18:45:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 78173160BCE; Mon, 15 May 2017 16:45:09 +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 C6757160BA9 for ; Mon, 15 May 2017 18:45:08 +0200 (CEST) Received: (qmail 4928 invoked by uid 500); 15 May 2017 16:45:08 -0000 Mailing-List: contact issues-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 issues@drill.apache.org Received: (qmail 4906 invoked by uid 99); 15 May 2017 16:45:07 -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; Mon, 15 May 2017 16:45:07 +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 D9C6BCF978 for ; Mon, 15 May 2017 16:45:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 Yed0so2AQdGL for ; Mon, 15 May 2017 16:45:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A4DBC5FB40 for ; Mon, 15 May 2017 16:45:05 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id ED42BE0D5F for ; Mon, 15 May 2017 16:45:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 4A23524374 for ; Mon, 15 May 2017 16:45:04 +0000 (UTC) Date: Mon, 15 May 2017 16:45:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-5496) Must restart drillbits whenever a secure Hive metastore is restarted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 15 May 2017 16:45:09 -0000 [ https://issues.apache.org/jira/browse/DRILL-5496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16010882#comment-16010882 ] ASF GitHub Bot commented on DRILL-5496: --------------------------------------- Github user sudheeshkatkam commented on a diff in the pull request: https://github.com/apache/drill/pull/833#discussion_r116541621 --- Diff: contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/schema/HiveSchemaFactory.java --- @@ -105,6 +105,20 @@ private boolean needToImpersonateReadingData() { return isDrillImpersonationEnabled && isHS2DoAsSet; } + /** + * Close this schema factory in preparation for retrying. Attempt to close + * connections, but just ignore any errors. + */ + + public void close() { + try { + processUserMetastoreClient.close(); + } catch (Exception e) { } + try { + metaStoreClientLoadingCache.invalidateAll(); + } catch (Exception e) { } --- End diff -- Log a warning message? > Must restart drillbits whenever a secure Hive metastore is restarted > -------------------------------------------------------------------- > > Key: DRILL-5496 > URL: https://issues.apache.org/jira/browse/DRILL-5496 > Project: Apache Drill > Issue Type: Bug > Affects Versions: 1.10.0 > Reporter: Paul Rogers > Assignee: Paul Rogers > Fix For: 1.11.0 > > > DRILL-4964: "Drill fails to connect to hive metastore after hive metastore is restarted unless drillbits are restarted also" attempted to fix a bug in Drill in which Drill hangs if Hive is restarted. Now, we see that all subsequent "show schemas" queries fail. > Steps to repro: > 1. Build a secure cluster (we used MapR) > 2. Install Hive and Drill services > 3. Configure drill impersonation and authentication > 4. Restart hivemeta service > 5. Connect to drill and execute query involving hive storage, issue occurs > 6. Restart the drill-bits services and execute the query, issue is no longer hit > The problem occurs in the same place as the earlier fix, but might represent a slightly different use case: in this case the connection is secure. -- This message was sent by Atlassian JIRA (v6.3.15#6346)