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

Use enum to wrap the election algorithm type

    XMLWordPrintableJSON

Details

    Description

      Currently there are use 1,2,3 to represent the three kinds of ElectionAlgorithm, this may leave people wondering what the number means. It's recommended to use enum to wrap the number.

      protected int electionAlg = 3;
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ruanwenjun Wenjun Ruan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m