Re: crashing server during a mysql test

MARK CALLAGHAN <[email protected]>
Newsgroups gmane.comp.db.mysql.devel
Message-ID <CAFbpF8PUqTuz6rytrELqUSqNPHG1x5_Aun9c2bGfhKzmi9LESA@mail.gmail.com>
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

On Mon, Apr 9, 2012 at 12:02 PM, Zardosht Kasheff <[email protected]> wrote:
> 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
[email protected]

-- 
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe:    http://lists.mysql.com/internals
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.