You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Hudson (Commented) (JIRA)" <ji...@apache.org> on 2012/01/13 18:54:41 UTC

[jira] [Commented] (BOOKKEEPER-40) BookieClientTest fails intermittantly

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

Hudson commented on BOOKKEEPER-40:
----------------------------------

Integrated in bookkeeper-trunk #315 (See [https://builds.apache.org/job/bookkeeper-trunk/315/])
    BOOKKEEPER-40: BookieClientTest fails intermittantly (fpj via ivank)

ivank : 
Files : 
* /zookeeper/bookkeeper/trunk/CHANGES.txt
* /zookeeper/bookkeeper/trunk/bookkeeper-server/src/test/java/org/apache/bookkeeper/test/BookieClientTest.java

                
> BookieClientTest fails intermittantly
> -------------------------------------
>
>                 Key: BOOKKEEPER-40
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-40
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.1.0
>
>         Attachments: BOOKKEEPER-40.patch
>
>
> To repro:
> true; while [ $? = 0 ]; do mvn test -Dtest=BookieClientTest; done
> Problem seems to be
> {code}
>         BookieClient bc = new BookieClient(channelFactory, executor);
>         ChannelBuffer bb;
>         bb = createByteBuffer(1, 1, 1);
>         bc.addEntry(addr, 1, passwd, 1, bb, wrcb, null);
>         synchronized (arc) {
>             bc.readEntry(addr, 1, 1, recb, arc);
> {code}
> The test doesn't wait for addEntry to complete before doing a read. It should be simple to fix. 

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