[ https://issues.apache.org/jira/browse/ZOOKEEPER-117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt updated ZOOKEEPER-117: ----------------------------------- Status: Open (was: Patch Available) There is a potential race condition with this code: 1) say leader shutdown is called 2) shutdown will call cnxAcceptor.halt() 3) acceptor is currently blocked on accept (for up to 1 sec) 4) shutdown method completes, including shutting down entire followers set (followerhandlers) 5) accept call in acceptor returns true (socket != null) 6) acceptor now adds followerhandler to followers set > threading issues in Leader election > ----------------------------------- > > Key: ZOOKEEPER-117 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-117 > Project: Zookeeper > Issue Type: Bug > Components: server > Reporter: Patrick Hunt > Assignee: Flavio Paiva Junqueira > Attachments: ZOOKEEPER-117.patch > > > Leader.lead() creates a new thread that can never terminate (short of > restarting vm) > naked notifyall in lead() method - what is the condition variable? Best if > set inside the sync block -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.