Hi Alex, all, On Wednesday, December 12, 2007 5:06 PM Alexander Klink wrote:
> I've just tried the new forking tests, but unfortunately they fail > for me on both Mac OS X and Debian. Do they run OK for you on FreeBSD? > The error I get is > No access to action 'child_finished_successfully' in state > 'SLEEPING_FOR_CHILD' because: > I18N_OPENXPKI_SERVER_WORKFLOW_CONDITION_CHECKFORKEDWORKFLOWCHILDREN_IPC_SHARE_DOES_NOT_EXIST > On first glance, I'd assumed it was a race condition - the child wants to > notify the parent of its finishing before that has even done the > housekeeping to create an IPC share that stores the existence of that > child. > Unfortunately, sleeping a few seconds in the SUBSUB workflow did not > help :-( > Any thoughts from your side? Yes, they run OK on FreeBSD. But I cannot say that they run OK always. If I give the PC more load the forking test is going very slowly and sometimes fails on the stage #7 - the main workflow appears to be still in the state SLEEPING_FOR_CHILD (but without ..._IPC_SHARE_DOES_NOT_EXIST). I guess there is really something like a race condition. While playing with the first version of the test I could not make it run OK. Then I changed the procedure: I have stopped asking the main workflow about the current state and start asking the children instead. You can see in the code that only after both the children are in the SUCCESS states the request to the main (top) workflow is sent. It looks as if serving the 'search_workflow_instances' request takes so much time that the server cannot perform any workflow actions. So when I add some sleeping (lines 225, 241, 260 in 80_forking.t) in between requests the test starts working OK. Best regards, Petr ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ OpenXPKI-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openxpki-devel
