[ https://issues.apache.org/jira/browse/ZOOKEEPER-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Hunt updated ZOOKEEPER-86: ---------------------------------- Status: Open (was: Patch Available) The exceptions in the log like this: 2008-07-23 17:57:15,449 - WARN [SendThread:[EMAIL PROTECTED] - Closing: java.io.IOException: Read error rc = -1 java.nio.DirectByteBuffer[pos=0 lim=4 cap=4] at org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:491) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:712) are the same issue as ZOOKEEPER-63 - the client has asked the server to close the connection but hasn't noted this fact (read returns -1), then when the server closes the client complains. I don't like adding delays since it results in the unit tests taking forever (they already take a lot more time than they should , almost all the time is due to doing sleeps). IMO tests should run very quickly so that we're more likely to run them. ;-) We really need a better way of handling this - see ZOOKEEPER-61 which already captures this issue with excessive/unnecessary sleep. -1 on this patch until the two issues 61/63, are addressed and we can be certain of successful fix It would be great if you could tackle this test "harness" issue. There are at least 3 jira (86/61/63) related to this. Hudson has intermittent failures as well. Feel free to collapse these 3 bugs into 1 jira if it makes sense to have a single patch for all of them. (or "link" them together and submit a patch against one) > intermittent test failure of org.apache.zookeeper.test.AsyncTest > ---------------------------------------------------------------- > > Key: ZOOKEEPER-86 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-86 > Project: Zookeeper > Issue Type: Bug > Components: tests > Environment: OS X and linux. It sometimes passes; but mostly seems to > fail on OS X each time > Reporter: james strachan > Assignee: james strachan > Attachments: patch_for_ZOOKEEPER-86.patch, > TEST-org.apache.zookeeper.test.AsyncTest.txt > > > Will attach the test output in an attachment... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.