MySQL Internals Test Faults

[edit] CONTEXT

Status of this section: up to date 2010-09-08

The assessment of the replication code in the presence of faults is extremely important to increase reliability. In particular, one needs to know if servers will either correctly recovery or print out appropriate error messages thus avoiding unexpected problems in a production environment. To fulfill this needs, we use the macros presented in what follows.

[edit] MACROS

[edit] USAGE

Let us assume the following function:

void function(void) 
{
  DBUG_CRASH_ENTER("function");
  if (DBUG_EVALUATE_IF("process_if", 1, 0))
  {
    DBUG_EXECUTE_IF("process_code", {
      const char *old_proc_info= thd->proc_info;
      thd->proc_info= "DBUG sleep";
      my_sleep(6000000);
      thd->proc_info= old_proc_info;});
  }
  DBUG_CRASH_VOID_RETURN;
}

To crash the server in the fault points defined above, we need to be SUPER user and execute one of the following commands:

Retrieved from "http://forge.mysql.com/wiki/MySQL_Internals_Test_Faults"

This page has been accessed 1,844 times. This page was last modified 07:31, 8 September 2010.

Find

Browse
MySQLForge
Main Page
Current events
Recent changes
Random page
Help
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Special pages
New pages
File list
Statistics
Bug reports
More...