You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Michael Han (JIRA)" <ji...@apache.org> on 2016/08/05 16:01:20 UTC

[jira] [Created] (ZOOKEEPER-2503) Enforce myid has a value between [1, 255] inclusive.

Michael Han created ZOOKEEPER-2503:
--------------------------------------

             Summary: Enforce myid has a value between [1, 255] inclusive.
                 Key: ZOOKEEPER-2503
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2503
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
    Affects Versions: 3.5.2, 3.4.9
            Reporter: Michael Han
             Fix For: 3.5.3, 3.4.10


In ZK documentation, we have:

"The myid file consists of a single line containing only the text of that machine's id. So myid of server 1 would contain the text "1" and nothing else. The id must be unique within the ensemble and should have a value between 1 and 255."

This however is not enforced in code, which should be fixed.
Discussion thread:
http://zookeeper-user.578899.n2.nabble.com/Is-myid-actually-limited-to-1-255-td7581270.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)