Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C979418637 for ; Fri, 19 Feb 2016 10:41:19 +0000 (UTC) Received: (qmail 75586 invoked by uid 500); 19 Feb 2016 10:41:18 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 75444 invoked by uid 500); 19 Feb 2016 10:41:18 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 75180 invoked by uid 99); 19 Feb 2016 10:41:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Feb 2016 10:41:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 2E06A2C1F57 for ; Fri, 19 Feb 2016 10:41:18 +0000 (UTC) Date: Fri, 19 Feb 2016 10:41:18 +0000 (UTC) From: "Hiroshi Ikeda (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-15292) Refined ZooKeeperWatcher to prevent ZooKeeper's callback while construction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Hiroshi Ikeda created HBASE-15292: ------------------------------------- Summary: Refined ZooKeeperWatcher to prevent ZooKeeper's callback while construction Key: HBASE-15292 URL: https://issues.apache.org/jira/browse/HBASE-15292 Project: HBase Issue Type: Bug Components: Zookeeper Reporter: Hiroshi Ikeda Priority: Minor The existing code is not just messy but also contains a subtle bug of visibility due to missing synchronization between threads. The root of the evil is that ZooKeeper uses a silly anti-pattern, starting a thread within its constructor, and in practice all the developers are not allowed to use ZooKeeper correctly without tedious code. -- This message was sent by Atlassian JIRA (v6.3.4#6332)