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

Refactor Followers and related classes into a Peer->Follower hierarchy in preparation for Observers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3.0
    • quorum, server
    • None
    • Reviewed
    • Refactor followers code into Learner from which followers and observers will inherit.

    Description

      For the Observers patch (ZOOKEEPER-368), a lot of functionality is shared between Followers and Observers. To avoid copying code, it makes sense to push the common code into a parent Peer class and specialise it for Followers and Observers. At the same time, some of the lengthier methods in Follower can be broken up to make the code more readable.

      Attachments

        1. ZOOKEEPER-549.patch
          108 kB
          Henry Robinson
        2. ZOOKEEPER-549.patch
          108 kB
          Henry Robinson
        3. ZOOKEEPER-549.patch
          106 kB
          Henry Robinson
        4. ZOOKEEPER-549.patch
          105 kB
          Henry Robinson

        Activity

          People

            henryr Henry Robinson
            henryr Henry Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: