Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1639

zk.getZKDatabase().deserializeSnapshot adds new system znodes instead of replacing existing ones

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.5
    • None
    • None
    • None

    Description

      Before the call to zk.getZKDatabase().deserializeSnapshot in Learner.java,
      zk.getZKDatabase().getDataTree().getNode("/zookeeper") == zk.getZKDatabase().getDataTree().procDataNode, which means that this is the same znode, as it should be.

      However, after this call, they are not equal. The node actually being used in client operations is zk.getZKDatabase().getDataTree().getNode("/zookeeper"), but the other old node procDataNode is still there and not replaced (in fact it is a final field).

      Attachments

        Activity

          People

            Unassigned Unassigned
            shralex Alexander Shraer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: