5567c595fb4e6a5c82a60c9c07cbaa7719600a89
If the queue for outbound jobs is not unlimited, experiment rows are fetched from the DB server continuously as experiments finish. When this takes too long the connection to the DB server can be lost. The code did not check for a mysql_error and assumed the result set was fetched completely, thus skipping a potentially large amount of experiments (in our case only ~20000 of 400000+ experiments were run). This change adds checks to determine if the result fetch loop was finished due to an error and checks the sent pilot count to the unfinished experiment count. Additionally, the mysql result object is correctly freed. The underlying problem of MySQL connection loss can hopefully be prevented by increasing timeouts in the MySQL config as described in doc/how-to-build.txt. To prevent the problem from occurring when this is forgotten, this change reverts the default job queue length to be unlimited (SERVER_OUT_QUEUE_SIZE=0), at the cost of increased memory usage. Change-Id: I09d9faddd8190c6dd5fbe733a0679a733d5837ec
This is an import of the old danceos svn repository. The Fail* development started with rev 187, but this git import only contains revisions 956 and newer due to directory structure changes. Imported from external gitsvn checkout. http://www.kernel.org/pub/software/scm/git/docs/howto/using-merge-subtree.html
Description
Languages
C++
45%
C
36.8%
Python
8.2%
Shell
1.7%
Makefile
1.6%
Other
6.2%