[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harsh J updated ZOOKEEPER-973:
------------------------------

    Attachment: ZOOKEEPER-973.patch

Ah yes, sorry about that.
                
> bind() could fail on Leader because it does not setReuseAddress on its 
> ServerSocket 
> ------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-973
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-973
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.3.2
>            Reporter: Vishal Kher
>            Assignee: Harsh J
>            Priority: Trivial
>             Fix For: 3.5.0
>
>         Attachments: ZOOKEEPER-973.patch, ZOOKEEPER-973.patch
>
>
> setReuseAddress(true) should be used below.
>     Leader(QuorumPeer self,LeaderZooKeeperServer zk) throws IOException {
>         this.self = self;
>         try {
>             ss = new ServerSocket(self.getQuorumAddress().getPort());
>         } catch (BindException e) {
>             LOG.error("Couldn't bind to port "
>                     + self.getQuorumAddress().getPort(), e);
>             throw e;
>         }
>         this.zk=zk;
>     }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to