Category: RandomQueryGenerator

RandomQueryGeneratorReporters


Contents

[edit] Reporters

The Reporters are extra modules that perform checks on the server, either periodically while the test is running or after the test has terminated. Unlike Validators, they are not related to the result of a particular query and are run in a separate monitoring process. By default, the Deadlock, ErrorLog and Backtrace are enabled.

[edit] Available Reporters

The following Reporters are available:

[edit] Deadlock Detection

Deadlock - this Reporter checks periodically whether the server has deadlocked. A deadlock is if one of the following situations occur:

Once a deadlock is declared, the server process is forced to produce a core file (either by killing it with SIGSEGV or by using cdb). This would trigger the Backtrace reporter to actually dump the backtraces of the deadlocked threads.

[edit] Server Debugging


[edit] Test Debugging

[edit] Replication Testing

[edit] Recovery Testing

SELECT (SUM(`int_key`)  + SUM(`int`)) / COUNT(*) FROM ...

against each table in the database. This query is expected to return 200.0000 if the database is consistent after recovery, which in turn implies a data set and a grammar that will maintain that value throughout the test. See RandomQueryGeneratorTests#Transactional_Integrity for an example.

[edit] Reporter API

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

This page has been accessed 1,356 times. This page was last modified 12:52, 29 April 2011.

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...