the followng code failed on hudson
watchctx_t ctx1, ctx2;
zhandle_t *zk1 = createClient(&ctx1);
zhandle_t *zk2 = createClient(&ctx2);
there's a problem with this test, it assumes that close(1) can be called before createclient(2) gets connected.
this is not correct: createclient is an async call an in some cases the connection can be established before
create client returns.
this shows a failure in this case because client1 was created, then client2 attempted to connect
but failed due to this on the server (max conn exceeded):
sprintf(cmd, "export ZKMAXCNXNS=1;%s startClean %s", ZKSERVER_CMD, getHostPorts());
conn 2 failed and therefore the following assert eventually failed.
this code should not assume that close(1) will beat connect(2)
Henry can you take a look?
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|25d 4h 55m||1||Patrick Hunt||03/Aug/09 21:35|
|33d 1h 1m||1||Patrick Hunt||05/Sep/09 22:36|
|Status||Resolved [ 5 ]||Closed [ 6 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Assignee||Henry Robinson [ henryr ]||Mahadev konar [ mahadev ]|