You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/10/08 10:52:00 UTC

[jira] [Updated] (ZOOKEEPER-4386) Use enum to wrap the election algorithm type

     [ 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)