Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

crashing server during a mysql test

10 views
Skip to first unread message

Zardosht Kasheff

unread,
Apr 9, 2012, 3:02:08 PM4/9/12
to
Hello all,

Is there a way to kill a server in the MySQL test framework? I
understand that --shutdown_server num_seconds will shut the server
down, and if the server has not gone down after num_seconds, the
process will be killed, but I am looking for something that guarantees
a kill.

Thanks
-Zardosht

--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals

MARK CALLAGHAN

unread,
Apr 9, 2012, 3:19:50 PM4/9/12
to
For deterministic kill it can be done via the test/debug macros. We do
this frequently in tests added to the Facebook patch. Official MySQL
has very few crash recovery tests. Here is an example:
http://bazaar.launchpad.net/~mysqlatfacebook/mysqlatfacebook/5.1/view/head:/mysql-test/t/crash_commit_before.test

Grep server source for "crash_commit_before" to see how this is done
http://bazaar.launchpad.net/~mysqlatfacebook/mysqlatfacebook/5.1/view/head:/sql/handler.cc
--
Mark Callaghan
mdca...@gmail.com
0 new messages