PT-207 Fixed tests

This commit is contained in:
Carlos Salguero
2017-12-16 11:28:03 -03:00
parent 8c611bcb78
commit 99a17cd041
9 changed files with 113 additions and 3 deletions

View File

@@ -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(

View File

@@ -184,9 +184,9 @@ $output = output(
chomp($output);
is(
like(
$output,
'',
qr/Starting checksum/,
"Bug 1074179: ignore-tables-regex works with --replicate-check-only"
);
# #############################################################################

View File

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

View File

@@ -1,3 +1,5 @@
Checking if all tables can be checksummed ...
Starting checksum ...
--
-- test.t
--

View File

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

View File

@@ -1,3 +1,5 @@
Checking if all tables can be checksummed ...
Starting checksum ...
--
-- osc.t2
--

View File

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