You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hiroshi Ikeda (JIRA)" <ji...@apache.org> on 2016/02/19 11:41:18 UTC

[jira] [Created] (HBASE-15292) Refined ZooKeeperWatcher to prevent ZooKeeper's callback while construction

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)