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 6DBA0200D5E for ; Fri, 8 Dec 2017 15:03:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6C40D160BF2; Fri, 8 Dec 2017 14:03:04 +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 B96CA160C0D for ; Fri, 8 Dec 2017 15:03:03 +0100 (CET) Received: (qmail 77024 invoked by uid 500); 8 Dec 2017 14:03:03 -0000 Mailing-List: contact issues-help@kylin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kylin.apache.org Delivered-To: mailing list issues@kylin.apache.org Received: (qmail 77015 invoked by uid 99); 8 Dec 2017 14:03:02 -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, 08 Dec 2017 14:03:02 +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 88978C5169 for ; Fri, 8 Dec 2017 14:03:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.011 X-Spam-Level: X-Spam-Status: No, score=-100.011 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 ts4KVAWU2yDP for ; Fri, 8 Dec 2017 14:03:01 +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 3E4A15FBB6 for ; Fri, 8 Dec 2017 14:03:01 +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 6CD7BE0E1C for ; Fri, 8 Dec 2017 14:03:00 +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 0F49A21E75 for ; Fri, 8 Dec 2017 14:03:00 +0000 (UTC) Date: Fri, 8 Dec 2017 14:03:00 +0000 (UTC) From: "kangkaisen (JIRA)" To: issues@kylin.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KYLIN-3087) DistributedLock in GlobalDictionaryBuilder may not release MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Dec 2017 14:03:04 -0000 [ https://issues.apache.org/jira/browse/KYLIN-3087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16283535#comment-16283535 ] kangkaisen commented on KYLIN-3087: ----------------------------------- Hi Fangyuan, Thanks you. This patch looks good to me, But doesn't have your author info. Please re-submit a new patch with your author info by following the guide here: https://kylin.apache.org/development/howto_contribute.html. I will merge your patch to master branch, Thanks you. > DistributedLock in GlobalDictionaryBuilder may not release > ---------------------------------------------------------- > > Key: KYLIN-3087 > URL: https://issues.apache.org/jira/browse/KYLIN-3087 > Project: Kylin > Issue Type: Bug > Components: Job Engine > Affects Versions: v2.2.0 > Reporter: Fangyuan Deng > Assignee: Fangyuan Deng > Attachments: KYLIN-3087.patch > > > In GlobalDictionaryBuilder.init(), > this.builder = new AppendTrieDictionaryBuilder(baseDir, maxEntriesPerSlice, true); > if this line has exception, the DistributedLock will not release, and other jobs can not run. > so,I added a try catch. > try { > this.builder = new AppendTrieDictionaryBuilder(baseDir, maxEntriesPerSlice, true); > } catch (Throwable e) { > lock.unlock(getLockPath(sourceColumn)); > throw new RuntimeException(String.format("Failed to create global dictionary on %s ", sourceColumn), e); > } -- This message was sent by Atlassian JIRA (v6.4.14#64029)