Flavio Paiva Junqueira commented on ZOOKEEPER-127:

Thanks for pointing it out, Mark. If I recall correctly, electionPort is the 
port that all peers use for leader election, so in the currently implementation 
"electionPort" doesn't mean the port of this peer, but instead the port that 
all peers use for leader election. If we allow a different port for each peer, 
then we would need a line in the configuration file for each peer for leader 
election, right? 

> Use of non-standard election ports in config breaks services
> ------------------------------------------------------------
>                 Key: ZOOKEEPER-127
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: quorum
>    Affects Versions: 3.0.0
>            Reporter: Mark Harwood
>            Priority: Minor
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
>     channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=
>   server.2=
>   server.3=
> Server 3 was observed trying to make a connection to host on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to