mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-28 08:51:44 +00:00
PT-207 Fixed tests
This commit is contained in:
@@ -196,6 +196,7 @@ $exit_status = pt_table_checksum::main(@args,
|
||||
$slave1_dbh->do("update percona.checksums set this_crc='' where db='sakila' and tbl='city' and (chunk=1 or chunk=6)");
|
||||
PerconaTest::wait_for_table($slave2_dbh, "percona.checksums", "db='sakila' and tbl='city' and (chunk=1 or chunk=6) and thic_crc=''");
|
||||
|
||||
# 9
|
||||
ok(
|
||||
no_diff(
|
||||
sub { pt_table_checksum::main(@args, qw(--replicate-check-only)) },
|
||||
@@ -214,6 +215,7 @@ $output = output(
|
||||
stderr => 1,
|
||||
);
|
||||
|
||||
# 10
|
||||
like(
|
||||
$output,
|
||||
qr/infinite loop detected/,
|
||||
@@ -223,13 +225,14 @@ like(
|
||||
# ############################################################################
|
||||
# Oversize chunk.
|
||||
# ############################################################################
|
||||
# 11
|
||||
ok(
|
||||
no_diff(
|
||||
sub { pt_table_checksum::main(@args,
|
||||
qw(-t osc.t2 --chunk-size 8 --explain --explain)) },
|
||||
"$sample/oversize-chunks.txt",
|
||||
),
|
||||
"Upper boundary same as next lower boundary"
|
||||
"Upper boundary same as next lower boundary",
|
||||
);
|
||||
|
||||
$output = output(
|
||||
|
@@ -184,9 +184,9 @@ $output = output(
|
||||
|
||||
chomp($output);
|
||||
|
||||
is(
|
||||
like(
|
||||
$output,
|
||||
'',
|
||||
qr/Starting checksum/,
|
||||
"Bug 1074179: ignore-tables-regex works with --replicate-check-only"
|
||||
);
|
||||
# #############################################################################
|
||||
|
@@ -1,3 +1,5 @@
|
||||
if all tables be ...
|
||||
checksum ...
|
||||
ERRORS DIFFS ROWS SKIPPED TABLE
|
||||
0 0 0 0 mysql.columns_priv
|
||||
0 0 0 0 mysql.db
|
||||
|
@@ -1,3 +1,5 @@
|
||||
Checking if all tables can be checksummed ...
|
||||
Starting checksum ...
|
||||
--
|
||||
-- test.t
|
||||
--
|
||||
|
@@ -1,3 +1,5 @@
|
||||
Checking if all tables can be checksummed ...
|
||||
Starting checksum ...
|
||||
Differences on h=127.0.0.1,P=12346
|
||||
TABLE CHUNK CNT_DIFF CRC_DIFF CHUNK_INDEX LOWER_BOUNDARY UPPER_BOUNDARY
|
||||
sakila.city 1 0 1 PRIMARY 1 100
|
||||
|
@@ -1,3 +1,5 @@
|
||||
Checking if all tables can be checksummed ...
|
||||
Starting checksum ...
|
||||
--
|
||||
-- osc.t2
|
||||
--
|
||||
|
@@ -1,3 +1,5 @@
|
||||
if all tables can be ...
|
||||
checksum ...
|
||||
ERRORS DIFFS ROWS CHUNKS SKIPPED TABLE
|
||||
0 0 0 1 0 mysql.columns_priv
|
||||
0 0 0 1 0 mysql.db
|
||||
|
Reference in New Issue
Block a user