[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13177837#comment-13177837
 ] 

Alexander Shraer commented on ZOOKEEPER-1293:
---------------------------------------------

I see. I agree that this creates a race on cnxAcceptor (although in practice I 
don't think this is harmful in this case since its used just to check whether 
to proceed or invoke another Thread.sleep(20)). 

We could just make cnxAcceptor volatile ?
                
> Remove unused readyToStart from Leader.java
> -------------------------------------------
>
>                 Key: ZOOKEEPER-1293
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1293
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server, tests
>            Reporter: Alexander Shraer
>            Assignee: Alexander Shraer
>            Priority: Trivial
>             Fix For: 3.5.0
>
>         Attachments: ZOOKEEPER-1293.patch
>
>
> After ZOOKEEPER-1194 readyToStart is no longer used.

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