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

Redundant zk.getZKDatabase().clear();

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 3.5.0
    • None

    Description

      Learner.syncWithLeader calls zk.getZKDatabase().clear() right before zk.getZKDatabase().deserializeSnapshot(leaderIs); Then the first thing deserializeSnapshot does is another clear().

      Suggest to remove the clear() in syncWithLeader.

      Attachments

        1. ZOOKEEPER-1638.patch
          0.7 kB
          neil bhakta
        2. ZOOKEEPER-1638.patch
          0.8 kB
          Michi Mutsuzaki

        Activity

          People

            neilb neil bhakta
            shralex Alexander Shraer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: