[Drbd-dev] DRBD-8: patch to testsuite.pl to improve reliability of agent communication

Graham, Simon Simon.Graham at stratus.com
Sat Oct 14 17:56:38 CEST 2006


We've been attempting to get testsuite.pl to run consistently and have
run into a number of problems related to the way it handles receiving
replies from the agent.pl script especially when a command is to be sent
to both agents  - currently, it forks 2 child processes that assemble
results from the agents and writes them to a single pipe that is read by
the main process - not only does this not work reliably it's also not
necessary - the attached is a patch that removes this and thereby
greatly simplifies the script (and also makes it work reliably in our
automated test environment).

The new code sends the command to both agents and then waits for the
replies directly on the network sockets one at a time.

Simon


-------------- next part --------------
A non-text attachment was scrubbed...
Name: testsuite-patch
Type: application/octet-stream
Size: 5951 bytes
Desc: testsuite-patch
Url : http://lists.linbit.com/pipermail/drbd-dev/attachments/20061014/fabcb3d8/testsuite-patch.obj


More information about the drbd-dev mailing list