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 DCA45200BB3 for ; Wed, 19 Oct 2016 03:02:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DB507160AFB; Wed, 19 Oct 2016 01:02:59 +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 579B6160AE5 for ; Wed, 19 Oct 2016 03:02:59 +0200 (CEST) Received: (qmail 40622 invoked by uid 500); 19 Oct 2016 01:02:58 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 40597 invoked by uid 99); 19 Oct 2016 01:02:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2016 01:02:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6093B2C4C72 for ; Wed, 19 Oct 2016 01:02:58 +0000 (UTC) Date: Wed, 19 Oct 2016 01:02:58 +0000 (UTC) From: "Thejas M Nair (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-14979) Removing stale Zookeeper locks at HiveServer2 initialization MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Oct 2016 01:03:00 -0000 [ https://issues.apache.org/jira/browse/HIVE-14979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15587245#comment-15587245 ] Thejas M Nair commented on HIVE-14979: -------------------------------------- I believe the large session timeout was set because we have seen some cases where gc pauses or temporary network issues cause persistent ephemeral nodes to go away. It didn't hurt to have the entry around a bit longer, as the client would retry connect to other nodes. > Removing stale Zookeeper locks at HiveServer2 initialization > ------------------------------------------------------------ > > Key: HIVE-14979 > URL: https://issues.apache.org/jira/browse/HIVE-14979 > Project: Hive > Issue Type: Improvement > Components: Locking > Reporter: Peter Vary > Assignee: Peter Vary > Attachments: HIVE-14979.3.patch, HIVE-14979.patch > > > HiveServer2 could use Zookeeper to store token that indicate that particular tables are locked with the creation of persistent Zookeeper objects. > A problem can occur when a HiveServer2 instance creates a lock on a table and the HiveServer2 instances crashes ("Out of Memory" for example) and the locks are not released in Zookeeper. This lock will then remain until it is manually cleared by an admin. > There should be a way to remove stale locks at HiveServer2 initialization, helping the admins life. -- This message was sent by Atlassian JIRA (v6.3.4#6332)