Bug 963225 v2: Updated tests and more samples

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-03-30 17:21:48 -03:00
parent b007016215
commit 53a6230e9c
16 changed files with 48 additions and 48 deletions

View File

@@ -37,7 +37,7 @@ if ( $timeout ) {
ok(
$waited >= 2 && $waited <= 3,
"--read-timeout waited $waited seconds reading STDIN"
"--read-timeout 2 waited $waited seconds reading STDIN"
);
diag(`rm -rf /tmp/mqd.pid`);

View File

@@ -250,10 +250,10 @@ is_deeply(
sample => "UPDATE foo.bar
SET biz = '91848182522'",
checksum => '12831241509574346332',
disk_filesort_cnt => '2',
disk_filesort_sum => '0',
disk_tmp_table_cnt => '2',
disk_tmp_table_sum => '0',
filesort_on_disk_cnt => '2',
filesort_on_disk_sum => '0',
tmp_table_on_disk_cnt => '2',
tmp_table_on_disk_sum => '0',
filesort_cnt => '2',
filesort_sum => '0',
full_join_cnt => '2',

View File

@@ -1,6 +1,6 @@
--order-by attribute Rows_read doesn't exist, using Query_time:sum
# Query 1: 0 QPS, 0x concurrency, ID 0x66825DDC008FFA89 at byte 332 ______
# Query 1: 0 QPS, 0x concurrency, ID 0x66825DDC008FFA89 at byte 338 ______
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27
@@ -42,7 +42,7 @@ update db2.tuningdetail_21_265507 n
select n.column1 = a.column1, n.word3 = a.word3 from db2.tuningdetail_21_265507 n
inner join db1.gonzo a using(gonzo) \G
# Query 2: 0 QPS, 0x concurrency, ID 0x0FFE94ABA6A2A9E8 at byte 1316 _____
# Query 2: 0 QPS, 0x concurrency, ID 0x0FFE94ABA6A2A9E8 at byte 1334 _____
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27
@@ -85,7 +85,7 @@ WHERE vab3concept1upload='6994465'\G
# EXPLAIN /*!50100 PARTITIONS*/
select vab3concept1id = '91848182522' from db4.vab3concept1upload where vab3concept1upload='6994465'\G
# Query 3: 0 QPS, 0x concurrency, ID 0xB211BA2B8D6D065C at byte 2363 _____
# Query 3: 0 QPS, 0x concurrency, ID 0xB211BA2B8D6D065C at byte 2393 _____
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27
@@ -127,7 +127,7 @@ SET biz = '91848182522'\G
# EXPLAIN /*!50100 PARTITIONS*/
select biz = '91848182522' from foo.bar \G
# Query 4: 0 QPS, 0x concurrency, ID 0x6969975466519B81 at byte 2825 _____
# Query 4: 0 QPS, 0x concurrency, ID 0x6969975466519B81 at byte 2861 _____
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27
@@ -170,7 +170,7 @@ WHERE fillze='899'\G
# EXPLAIN /*!50100 PARTITIONS*/
select boop='bop: 899' from bizzle.bat where fillze='899'\G
# Query 5: 0 QPS, 0x concurrency, ID 0xC22D235B07D1D774 at byte 1840 _____
# Query 5: 0 QPS, 0x concurrency, ID 0xC22D235B07D1D774 at byte 1864 _____
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27
@@ -209,7 +209,7 @@ select boop='bop: 899' from bizzle.bat where fillze='899'\G
INSERT INTO db1.conch (word3, vid83)
VALUES ('211', '18')\G
# Query 6: 0 QPS, 0x concurrency, ID 0x7546F89214254F2F at byte 803 ______
# Query 6: 0 QPS, 0x concurrency, ID 0x7546F89214254F2F at byte 815 ______
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27

View File

@@ -1,5 +1,5 @@
# Query 1: 0 QPS, 0x concurrency, ID 0x66825DDC008FFA89 at byte 332 ______
# Query 1: 0 QPS, 0x concurrency, ID 0x66825DDC008FFA89 at byte 338 ______
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |

View File

@@ -1,5 +1,5 @@
# Query 1: 0 QPS, 0x concurrency, ID 0xB211BA2B8D6D065C at byte 3332 _____
# Query 1: 0 QPS, 0x concurrency, ID 0xB211BA2B8D6D065C at byte 3374 _____
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
@@ -42,7 +42,7 @@ SET biz = '91848182522'\G
# EXPLAIN /*!50100 PARTITIONS*/
select biz = '91848182522' from foo.bar \G
# Query 2: 0 QPS, 0x concurrency, ID 0x66825DDC008FFA89 at byte 332 ______
# Query 2: 0 QPS, 0x concurrency, ID 0x66825DDC008FFA89 at byte 338 ______
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |

View File

@@ -1,5 +1,5 @@
# Query 1: 0 QPS, 0x concurrency, ID 0x66825DDC008FFA89 at byte 332 ______
# Query 1: 0 QPS, 0x concurrency, ID 0x66825DDC008FFA89 at byte 338 ______
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27
@@ -41,7 +41,7 @@ update db2.tuningdetail_21_265507 n
select n.column1 = a.column1, n.word3 = a.word3 from db2.tuningdetail_21_265507 n
inner join db1.gonzo a using(gonzo) \G
# Query 2: 0 QPS, 0x concurrency, ID 0x0FFE94ABA6A2A9E8 at byte 1316 _____
# Query 2: 0 QPS, 0x concurrency, ID 0x0FFE94ABA6A2A9E8 at byte 1334 _____
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27
@@ -84,7 +84,7 @@ WHERE vab3concept1upload='6994465'\G
# EXPLAIN /*!50100 PARTITIONS*/
select vab3concept1id = '91848182522' from db4.vab3concept1upload where vab3concept1upload='6994465'\G
# Query 3: 0 QPS, 0x concurrency, ID 0xB211BA2B8D6D065C at byte 3332 _____
# Query 3: 0 QPS, 0x concurrency, ID 0xB211BA2B8D6D065C at byte 3374 _____
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27
@@ -126,7 +126,7 @@ SET biz = '91848182522'\G
# EXPLAIN /*!50100 PARTITIONS*/
select biz = '91848182522' from foo.bar \G
# Query 4: 0 QPS, 0x concurrency, ID 0x6969975466519B81 at byte 2825 _____
# Query 4: 0 QPS, 0x concurrency, ID 0x6969975466519B81 at byte 2861 _____
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27
@@ -169,7 +169,7 @@ WHERE fillze='899'\G
# EXPLAIN /*!50100 PARTITIONS*/
select boop='bop: 899' from bizzle.bat where fillze='899'\G
# Query 5: 0 QPS, 0x concurrency, ID 0xC22D235B07D1D774 at byte 1840 _____
# Query 5: 0 QPS, 0x concurrency, ID 0xC22D235B07D1D774 at byte 1864 _____
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27
@@ -208,7 +208,7 @@ select boop='bop: 899' from bizzle.bat where fillze='899'\G
INSERT INTO db1.conch (word3, vid83)
VALUES ('211', '18')\G
# Query 6: 0 QPS, 0x concurrency, ID 0x7546F89214254F2F at byte 803 ______
# Query 6: 0 QPS, 0x concurrency, ID 0x7546F89214254F2F at byte 815 ______
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2007-12-18 11:48:27

View File

@@ -1,5 +1,5 @@
# Query 1: 0 QPS, 0x concurrency, ID 0x6969975466519B81 at byte 2825 _____
# Query 1: 0 QPS, 0x concurrency, ID 0x6969975466519B81 at byte 2861 _____
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |

View File

@@ -1,5 +1,5 @@
# Query 1: 0.05 QPS, 0x concurrency, ID 0xA20C29AF174CE545 at byte 1803 __
# Query 1: 0.05 QPS, 0x concurrency, ID 0xA20C29AF174CE545 at byte 1833 __
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
@@ -32,7 +32,7 @@
# EXPLAIN /*!50100 PARTITIONS*/
SELECT col FROM foo_tbl\G
# Query 2: 0.30 QPS, 0x concurrency, ID 0xD4CD74934382A184 at byte 1445 __
# Query 2: 0.30 QPS, 0x concurrency, ID 0xD4CD74934382A184 at byte 1469 __
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |

View File

@@ -1,5 +1,5 @@
# Query 1: 0.05 QPS, 0.00x concurrency, ID 0xA20C29AF174CE545 at byte 1803
# Query 1: 0.05 QPS, 0.00x concurrency, ID 0xA20C29AF174CE545 at byte 1833
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
@@ -38,7 +38,7 @@
# EXPLAIN /*!50100 PARTITIONS*/
SELECT col FROM foo_tbl\G
# Query 2: 0.30 QPS, 0.00x concurrency, ID 0xD4CD74934382A184 at byte 1445
# Query 2: 0.30 QPS, 0.00x concurrency, ID 0xD4CD74934382A184 at byte 1469
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |

View File

@@ -1,6 +1,6 @@
# Query 2: 0.30 QPS, 0.00x concurrency, ID 0xD4CD74934382A184 at byte 1445
# Query 2: 0.30 QPS, 0.00x concurrency, ID 0xD4CD74934382A184 at byte 1469
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |

View File

@@ -1,5 +1,5 @@
# Query 1: 0.05 QPS, 0.00x concurrency, ID 0xA20C29AF174CE545 at byte 1803
# Query 1: 0.05 QPS, 0.00x concurrency, ID 0xA20C29AF174CE545 at byte 1833
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
@@ -38,7 +38,7 @@
# EXPLAIN /*!50100 PARTITIONS*/
SELECT col FROM foo_tbl\G
# Query 2: 0.30 QPS, 0.00x concurrency, ID 0xD4CD74934382A184 at byte 1445
# Query 2: 0.30 QPS, 0.00x concurrency, ID 0xD4CD74934382A184 at byte 1469
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |

View File

@@ -1,6 +1,6 @@
# Query 2: 0.30 QPS, 0.00x concurrency, ID 0xD4CD74934382A184 at byte 1445
# Query 2: 0.30 QPS, 0.00x concurrency, ID 0xD4CD74934382A184 at byte 1469
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |

View File

@@ -1,5 +1,5 @@
# Query 1: 0.05 QPS, 0.00x concurrency, ID 0xA20C29AF174CE545 at byte 1803
# Query 1: 0.05 QPS, 0.00x concurrency, ID 0xA20C29AF174CE545 at byte 1833
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
@@ -32,7 +32,7 @@
# EXPLAIN /*!50100 PARTITIONS*/
SELECT col FROM foo_tbl\G
# Query 2: 0.30 QPS, 0.00x concurrency, ID 0xD4CD74934382A184 at byte 1445
# Query 2: 0.30 QPS, 0.00x concurrency, ID 0xD4CD74934382A184 at byte 1469
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |

View File

@@ -1,5 +1,5 @@
# Query 1: 0 QPS, 0x concurrency, ID 0xABE9508269335CD1 at byte 1830 _____
# Query 1: 0 QPS, 0x concurrency, ID 0xABE9508269335CD1 at byte 1866 _____
# Scores: Apdex = 0.00 [1.0]*, V/M = 0.00
# Lock_time sparkline: | ^|
# Time range: all events occurred at 2009-08-05 13:00:27
@@ -13,11 +13,11 @@
# Merge passes 0 0 0 0 0 0 0 0
# Query size 16 40 40 40 40 40 0 40
# Boolean:
# Disk filesor 100% yes, 0% no
# Disk tmp tab 100% yes, 0% no
# Filesort 100% yes, 0% no
# Filesort on 100% yes, 0% no
# Full scan 100% yes, 0% no
# Tmp table 100% yes, 0% no
# Tmp table on 100% yes, 0% no
# String:
# Databases db3
# Lock_time distribution
@@ -37,7 +37,7 @@ DELETE FROM forest WHERE animal = 'dead'\G
# EXPLAIN /*!50100 PARTITIONS*/
select * from forest WHERE animal = 'dead'\G
# Query 2: 0.00 QPS, 0.00x concurrency, ID 0xAC1BF726F2AB10C5 at byte 916
# Query 2: 0.00 QPS, 0.00x concurrency, ID 0xAC1BF726F2AB10C5 at byte 934
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.03
# Lock_time sparkline: | _^ |
# Time range: 2009-08-05 11:00:27 to 13:00:27
@@ -70,7 +70,7 @@ select * from forest WHERE animal = 'dead'\G
# EXPLAIN /*!50100 PARTITIONS*/
SELECT * FROM foo\G
# Query 3: 0 QPS, 0x concurrency, ID 0xB79802214165F670 at byte 1243 _____
# Query 3: 0 QPS, 0x concurrency, ID 0xB79802214165F670 at byte 1267 _____
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.73
# Lock_time sparkline: | ^^ |
# Time range: all events occurred at 2009-08-05 12:00:27
@@ -101,7 +101,7 @@ SELECT * FROM foo\G
# SHOW CREATE TABLE `db2`.`tbl`\G
INSERT INTO tbl VALUES ('a', 'b')\G
# Query 4: 0 QPS, 0x concurrency, ID 0x1F9B2F47A843D460 at byte 327 ______
# Query 4: 0 QPS, 0x concurrency, ID 0x1F9B2F47A843D460 at byte 333 ______
# Scores: Apdex = 0.50 [1.0]*, V/M = 0.00
# Lock_time sparkline: | ^ |
# Time range: all events occurred at 2009-08-05 11:00:27
@@ -131,7 +131,7 @@ INSERT INTO tbl VALUES ('a', 'b')\G
# EXPLAIN /*!50100 PARTITIONS*/
SELECT id FROM tbl WHERE id = 1\G
# Query 5: 0 QPS, 0x concurrency, ID 0x3F1024B96D9D469E at byte 613 ______
# Query 5: 0 QPS, 0x concurrency, ID 0x3F1024B96D9D469E at byte 625 ______
# Scores: Apdex = 0.00 [1.0]*, V/M = 0.00
# Lock_time sparkline: |^ |
# Time range: all events occurred at 2009-08-05 11:00:27
@@ -145,7 +145,7 @@ SELECT id FROM tbl WHERE id = 1\G
# Merge passes 100 1 1 1 1 1 0 1
# Query size 15 39 39 39 39 39 0 39
# Boolean:
# Disk filesor 100% yes, 0% no
# Filesort on 100% yes, 0% no
# Full scan 100% yes, 0% no
# Tmp table 100% yes, 0% no
# String:

View File

@@ -1,5 +1,5 @@
# Query 1: 0 QPS, 0x concurrency, ID 0xABE9508269335CD1 at byte 1830 _____
# Query 1: 0 QPS, 0x concurrency, ID 0xABE9508269335CD1 at byte 1866 _____
# Scores: Apdex = 0.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^|
# Time range: all events occurred at 2009-08-05 13:00:27
@@ -13,11 +13,11 @@
# Merge passes 0 0 0 0 0 0 0 0
# Query size 16 40 40 40 40 40 0 40
# Boolean:
# Disk filesor 100% yes, 0% no
# Disk tmp tab 100% yes, 0% no
# Filesort 100% yes, 0% no
# Filesort on 100% yes, 0% no
# Full scan 100% yes, 0% no
# Tmp table 100% yes, 0% no
# Tmp table on 100% yes, 0% no
# String:
# Databases db3
# Query_time distribution
@@ -37,7 +37,7 @@ DELETE FROM forest WHERE animal = 'dead'\G
# EXPLAIN /*!50100 PARTITIONS*/
select * from forest WHERE animal = 'dead'\G
# Query 2: 0.00 QPS, 0.00x concurrency, ID 0xAC1BF726F2AB10C5 at byte 916
# Query 2: 0.00 QPS, 0.00x concurrency, ID 0xAC1BF726F2AB10C5 at byte 934
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.03
# Query_time sparkline: | ^ |
# Time range: 2009-08-05 11:00:27 to 13:00:27
@@ -70,7 +70,7 @@ select * from forest WHERE animal = 'dead'\G
# EXPLAIN /*!50100 PARTITIONS*/
SELECT * FROM foo\G
# Query 3: 0 QPS, 0x concurrency, ID 0xB79802214165F670 at byte 1243 _____
# Query 3: 0 QPS, 0x concurrency, ID 0xB79802214165F670 at byte 1267 _____
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.73
# Query_time sparkline: | ^ ^ |
# Time range: all events occurred at 2009-08-05 12:00:27
@@ -101,7 +101,7 @@ SELECT * FROM foo\G
# SHOW CREATE TABLE `db2`.`tbl`\G
INSERT INTO tbl VALUES ('a', 'b')\G
# Query 4: 0 QPS, 0x concurrency, ID 0x1F9B2F47A843D460 at byte 327 ______
# Query 4: 0 QPS, 0x concurrency, ID 0x1F9B2F47A843D460 at byte 333 ______
# Scores: Apdex = 0.50 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2009-08-05 11:00:27
@@ -131,7 +131,7 @@ INSERT INTO tbl VALUES ('a', 'b')\G
# EXPLAIN /*!50100 PARTITIONS*/
SELECT id FROM tbl WHERE id = 1\G
# Query 5: 0 QPS, 0x concurrency, ID 0x3F1024B96D9D469E at byte 613 ______
# Query 5: 0 QPS, 0x concurrency, ID 0x3F1024B96D9D469E at byte 625 ______
# Scores: Apdex = 0.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | ^ |
# Time range: all events occurred at 2009-08-05 11:00:27
@@ -145,7 +145,7 @@ SELECT id FROM tbl WHERE id = 1\G
# Merge passes 100 1 1 1 1 1 0 1
# Query size 15 39 39 39 39 39 0 39
# Boolean:
# Disk filesor 100% yes, 0% no
# Filesort on 100% yes, 0% no
# Full scan 100% yes, 0% no
# Tmp table 100% yes, 0% no
# String:

View File

@@ -55,7 +55,7 @@
# SHOW CREATE TABLE `db`.`v`\G
INSERT INTO db.v (m, b) VALUES ('', 'Exact')\G
# Query 2: 0 QPS, 0x concurrency, ID 0x9E892D4B16D7BFC2 at byte 519 ______
# Query 2: 0 QPS, 0x concurrency, ID 0x9E892D4B16D7BFC2 at byte 525 ______
# This item is included in the report because it matches --limit.
# Scores: Apdex = 1.00 [1.0]*, V/M = 0.00
# Query_time sparkline: | |