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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.3.0
    • Component/s: quorum, server
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      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
          105 kB
          Henry Robinson
        2. ZOOKEEPER-549.patch
          106 kB
          Henry Robinson
        3. ZOOKEEPER-549.patch
          108 kB
          Henry Robinson
        4. ZOOKEEPER-549.patch
          108 kB
          Henry Robinson

          Activity

            People

            • Assignee:
              henryr Henry Robinson
              Reporter:
              henryr Henry Robinson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: