Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15292

Refined ZooKeeperWatcher to prevent ZooKeeper's callback while construction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0, 0.98.20, 2.0.0
    • Zookeeper
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. HBASE-15292.patch
          7 kB
          Hiroshi Ikeda
        2. HBASE-15292-V2.patch
          6 kB
          Hiroshi Ikeda
        3. HBASE-15292-V3.patch
          10 kB
          Hiroshi Ikeda
        4. HBASE-15292-V4.patch
          10 kB
          Hiroshi Ikeda
        5. HBASE-15292-V5.patch
          11 kB
          Hiroshi Ikeda

        Activity

          People

            ikeda Hiroshi Ikeda
            ikeda Hiroshi Ikeda
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: