mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-08-29 09:30:51 +00:00
PT-2340 - Support MySQL 8.4
- Changed replica_parallel_workers in configuration for 8.0 and 8.4 to o, because wiat_for_replicas is buggy for multi-threaded slaves (cherry picked from commit d9b0219d9e
)
- Minor tests diagnostic and cleanup
This commit is contained in:
@@ -40,3 +40,6 @@ binlog_format = STATEMENT
|
||||
#performance-schema-instrument='wait/lock/metadata/sql/mdl=ON'
|
||||
#performance-schema-instrument='transaction=ON'
|
||||
secure-file-priv =
|
||||
|
||||
# wait_for_replica buggy on multi-threaded replica
|
||||
slave-parallel-workers=0
|
||||
|
@@ -40,3 +40,6 @@ binlog_format = STATEMENT
|
||||
#performance-schema-instrument='wait/lock/metadata/sql/mdl=ON'
|
||||
#performance-schema-instrument='transaction=ON'
|
||||
secure-file-priv =
|
||||
|
||||
# wait_for_replica buggy on multi-threaded replica
|
||||
replica-parallel-workers=0
|
||||
|
@@ -104,7 +104,7 @@ unlike(
|
||||
$output,
|
||||
qr/Cannot checksum table/,
|
||||
"Very small --chunk-time doesn't cause zero --chunk-size"
|
||||
);
|
||||
) or diag($output);
|
||||
}
|
||||
# #############################################################################
|
||||
# Bug 921700: pt-table-checksum doesn't add --where to chunk-oversize test
|
||||
|
@@ -12,7 +12,7 @@ use English qw(-no_match_vars);
|
||||
use Test::More;
|
||||
|
||||
#if ( !$ENV{SLOW_TESTS} ) {
|
||||
# plan skip_all => "pt-table-checksum/replication_filters.t is one of the top slowest files; set SLOW_TESTS=1 to enable it.";
|
||||
# plan skip_all => "pt-table-checksum/pt-1616.t is one of the top slowest files; set SLOW_TESTS=1 to enable it.";
|
||||
#}
|
||||
|
||||
use PerconaTest;
|
||||
@@ -105,6 +105,5 @@ unlike(
|
||||
# Done.
|
||||
# #############################################################################
|
||||
$sb->wipe_clean($dbh);
|
||||
$sb->wait_for_replicas();
|
||||
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
||||
exit;
|
||||
|
@@ -127,7 +127,7 @@ is_deeply(
|
||||
[qw( sakila city )],
|
||||
],
|
||||
"Checksum results for 1/4 of sakila singles"
|
||||
);
|
||||
) or diag(Dumper($row));
|
||||
|
||||
$output = output(
|
||||
sub { pt_table_checksum::main(@args, qw(-d sakila --resume --chunk-size 10000)) },
|
||||
|
@@ -146,9 +146,8 @@ like(
|
||||
|
||||
$replica1_dbh->do("STOP ${replica_name}");
|
||||
$replica1_dbh->do("CHANGE ${source_change} TO ${source_name}_port=12345, ${source_name}_user='msandbox'");
|
||||
$replica1_dbh->do("START ${replica_name}");
|
||||
$replica1_dbh->do("STOP ${replica_name}");
|
||||
$replica1_dbh->do("CHANGE ${source_change} TO ${source_name}_port=12345, ${source_name}_user='msandbox'");
|
||||
$source_dbh->do("RESET ${source_reset}");
|
||||
$replica1_dbh->do("RESET ${replica_name}");
|
||||
$replica1_dbh->do("START ${replica_name}");
|
||||
|
||||
# #############################################################################
|
||||
|
Reference in New Issue
Block a user