Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9859311D45 for ; Wed, 10 Sep 2014 01:53:29 +0000 (UTC) Received: (qmail 65982 invoked by uid 500); 10 Sep 2014 01:53:29 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 65942 invoked by uid 500); 10 Sep 2014 01:53:29 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 65931 invoked by uid 99); 10 Sep 2014 01:53:29 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Sep 2014 01:53:29 +0000 Date: Wed, 10 Sep 2014 01:53:29 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-11923) Potential race condition in RecoverableZookeeper.checkZk() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HBASE-11923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Enis Soztutar updated HBASE-11923: ---------------------------------- Attachment: hbase-11923-0.94.patch attaching 0.94 patch. > Potential race condition in RecoverableZookeeper.checkZk() > ---------------------------------------------------------- > > Key: HBASE-11923 > URL: https://issues.apache.org/jira/browse/HBASE-11923 > Project: HBase > Issue Type: Sub-task > Reporter: Lars Hofhansl > Assignee: Lars Hofhansl > Fix For: 0.99.0, 2.0.0, 0.98.7, 0.94.24 > > Attachments: 11923-trunk.txt, hbase-11923-0.94.patch > > > [~apurtell] pointed out a potential race condition in RecoverableZookeeper.checkZk() that I introduced in parent. > If multiple threads would enter that method at the same time without a valid Zookeeper reference, we could leak Zookeeper objects. > Since this is not a on a hot code path we should just synchronize the two involved methods. -- This message was sent by Atlassian JIRA (v6.3.4#6332)