[
https://issues.apache.org/jira/browse/ZOOKEEPER-4386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated ZOOKEEPER-4386:
--------------------------------------
Labels: pull-request-available (was: )
> Use enum to wrap the election algorithm type
> --------------------------------------------
>
> Key: ZOOKEEPER-4386
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4386
> Project: ZooKeeper
> Issue Type: Improvement
> Components: leaderElection
> Reporter: Wenjun Ruan
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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.
> {code:java}
> protected int electionAlg = 3;
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)