better cleaning in t/pt-table-sync/safety_checks.t

This commit is contained in:
Sveta Smirnova
2024-12-12 13:41:22 +03:00
parent 4906b6a348
commit 25ba843cdd
3 changed files with 3 additions and 5 deletions

View File

@@ -465,6 +465,7 @@ sub is_cluster_node {
sub can_load_data {
my ($self, $server) = @_;
my $output = $self->use($server, q{-e "SELECT * FROM percona_test.load_data"});
#die(0 =~ /1/);
return ($output || '') =~ /1/;
}

View File

@@ -110,8 +110,6 @@ unlike(
# Bug 921700: pt-table-checksum doesn't add --where to chunk-oversize test
# on replicas
# #############################################################################
diag(`ls -l /mnt/jenkins/workspace/pt-unit-tests/percona-toolkit/t/pt-table-checksum/samples/600cities.data`);
diag(`ls -l $trunk/t/pt-table-checksum/samples/600cities.data`);
$sb->load_file('source', 't/pt-table-checksum/samples/600cities.sql');
$source_dbh->do("LOAD DATA LOCAL INFILE '$trunk/t/pt-table-checksum/samples/600cities.data' INTO TABLE test.t");
$source_dbh->do("SET SQL_LOG_BIN=0");

View File

@@ -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}");
# #############################################################################