[
https://issues.apache.org/jira/browse/BOOKKEEPER-40?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flavio Junqueira updated BOOKKEEPER-40:
---------------------------------------
Attachment: BOOKKEEPER-40.patch
I tried to implement the fix you suggested, Ivan. It solves the problem for me.
> BookieClientTest fails intermittantly
> -------------------------------------
>
> Key: BOOKKEEPER-40
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-40
> Project: Bookkeeper
> Issue Type: Bug
> Reporter: Ivan Kelly
> 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