zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flavio Paiva Junqueira (JIRA)" <j...@apache.org>
Subject [jira] Updated: (ZOOKEEPER-117) threading issues in Leader election
Date Tue, 09 Sep 2008 15:11:44 GMT

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

Flavio Paiva Junqueira updated ZOOKEEPER-117:

    Status: Patch Available  (was: Open)

I have:

1- Created a new class extending thread to handle the connection requests of followers (FollowerCnxAcceptor).
An object of this class is shut down when the leader object owning it is shut down;
2- I have removed the naked notify. After inspecting the code, it seems there there is no
one waiting on the notification that call generates.

Tests pass without a problem.

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

View raw message