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

Removing a duplicate function and another minor cleanup in QuorumPeer.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Not A Problem
    • None
    • None
    • server
    • None

    Description

      • getMyId() and getId() in QuorumPeer are doing the same thing
      • QuorumPeer.quorumPeers is being read directly from outside QuorumPeer, although we have the getter QuorumPeers.getView().

      The purpose of this cleanup is to later be able to change more easily the way QuorumPeer manages its list of peers (to support dynamic changes in this list).

      Attachments

        1. ZOOKEEPER-1365.patch
          5 kB
          Alexander Shraer
        2. ZOOKEEPER-1365.patch
          5 kB
          Alexander Shraer

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: