zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From breed <...@git.apache.org>
Subject [GitHub] zookeeper pull request #624: ZOOKEEPER-3108:use a new property server.id in ...
Date Sat, 15 Sep 2018 02:52:58 GMT
Github user breed commented on a diff in the pull request:

    --- Diff: zookeeper-docs/src/documentation/content/xdocs/zookeeperAdmin.xml ---
    @@ -265,18 +266,25 @@ server.3=zoo3:2888:3888</programlisting>
               role="bold">server.id=host:port:port</emphasis>. The parameters <emphasis
               role="bold">host</emphasis> and <emphasis
               role="bold">port</emphasis> are straightforward. You attribute the
    -          server id to each machine by creating a file named
    +          server id to each machine by setting <emphasis role="bold">server.id</emphasis>
    +          to a unique integer for each zookeeper server.To keep backwards compatibility,
    +          you can still creat a file named
               <filename>myid</filename>, one for each server, which resides in
               that server's data directory, as specified by the configuration file
    -          parameter <emphasis role="bold">dataDir</emphasis>.</para></listitem>
    +          parameter <emphasis role="bold">dataDir</emphasis>.If the unique
id is both set in the
    +          server.id of zoo.cfg and myid file,the server.id has the priority
    --- End diff --
    i think we should return an error in this case. this will make debugging problems that
result from this situation hard.


View raw message