You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Mahadev konar (JIRA)" <ji...@apache.org> on 2009/05/22 02:31:45 UTC

[jira] Updated: (ZOOKEEPER-415) zookeeper c tests hang.

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

Mahadev konar updated ZOOKEEPER-415:
------------------------------------

    Attachment: ZOOKEEPER-415.patch

it turns out that we were facing a problem with the list.get() throwing an excpetion when the list is empty, whcih would result in lock not being released and the other thread waiting on the lock and never able to acquire it leading to tests hanging. for the soln.

- added wait for events before we ever call getEvents() 
- added assertion in getEvent that would fail if there are no elements available.



> zookeeper c tests hang.
> -----------------------
>
>                 Key: ZOOKEEPER-415
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-415
>             Project: Zookeeper
>          Issue Type: Bug
>            Reporter: Mahadev konar
>            Assignee: Mahadev konar
>             Fix For: 3.2.0
>
>         Attachments: ZOOKEEPER-415.patch
>
>
> the c tests hang sometimes. 

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