PT-2340 - Support MySQL 8.4

- Removed runtime.txt after discussion with Anastasia Alexandrova
- Added "use VersionParser" into tests in t/lib when needed
- Removed word master from tests for pt-archiver, pt-config-diff, pt-deadlock-logger, pt-duplicate-key-checker, pt-find, pt-fk-error-logger, pt-heartbeat, pt-index-usage, pt-ioprofile, pt-kill, pt-mysql-summary
- Removed word slave from tests for pt-archiver, pt-config-diff, pt-deadlock-logger, pt-duplicate-key-checker, pt-find, pt-fk-error-logger, pt-heartbeat, pt-index-usage, pt-ioprofile, pt-kill, pt-mysql-summary
- Updated modules for pt-archiver, pt-config-diff, pt-deadlock-logger, pt-duplicate-key-checker, pt-find, pt-fk-error-logger, pt-heartbeat, pt-index-usage, pt-ioprofile, pt-kill, pt-mysql-summary
- Changed mysql_ssl patch, so it is now short option s
- Added a check for existing zombies in t/pt-kill/execute_command.t
- Added bin/pt-galera-log-explainer to .gitignore
This commit is contained in:
Sveta Smirnova
2024-07-26 13:35:29 +03:00
parent 8cbb5a0c8f
commit 5c999ca3e0
114 changed files with 1898 additions and 1455 deletions

View File

@@ -17,14 +17,14 @@ require "$trunk/bin/pt-archiver";
my $dp = new DSNParser(opts=>$dsn_opts);
my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp);
my $dbh = $sb->get_dbh_for('master');
my $dbh2 = $sb->get_dbh_for('slave1');
my $dbh = $sb->get_dbh_for('source');
my $dbh2 = $sb->get_dbh_for('replica1');
if ( !$dbh ) {
plan skip_all => 'Cannot connect to sandbox master';
plan skip_all => 'Cannot connect to sandbox source';
}
elsif ( !$dbh2 ) {
plan skip_all => 'Cannot connect to sandbox slave';
plan skip_all => 'Cannot connect to sandbox replica';
}
my $output;
@@ -47,7 +47,7 @@ ok(
);
# Test with a sentinel file
$sb->load_file('master', 't/pt-archiver/samples/table1.sql');
$sb->load_file('source', 't/pt-archiver/samples/table1.sql');
diag(`touch $sentinel`);
$output = output(
@@ -131,20 +131,20 @@ diag(`rm -f $pid_file`);
# #############################################################################
# This test will achive rows from dbh:test.table_1 to dbh2:test.table_2.
$sb->load_file('master', 't/pt-archiver/samples/tables1-4.sql');
$sb->load_file('source', 't/pt-archiver/samples/tables1-4.sql');
# Change passwords so defaults files won't work.
$sb->do_as_root(
'master',
'source',
q/CREATE USER 'bob'@'%' IDENTIFIED BY 'foo'/,
q/GRANT ALL ON *.* TO 'bob'@'%'/,
);
$dbh2->do('TRUNCATE TABLE test.table_2');
$sb->wait_for_slaves;
$sb->wait_for_replicas;
$output = output(
sub { pt_archiver::main(
'--source', 'h=127.1,P=12345,D=test,t=table_1,u=bob,p=foo',
'--source', 'h=127.1,P=12345,D=test,t=table_1,u=bob,p=foo,s=1',
'--dest', 'P=12346,t=table_2',
qw(--where 1=1))
},
@@ -156,9 +156,9 @@ is(
scalar @$r,
4,
'--dest inherited from --source'
);
) or diag($output);
$sb->do_as_root('master', q/DROP USER 'bob'@'%'/);
$sb->do_as_root('source', q/DROP USER 'bob'@'%'/);
# #############################################################################
# Done.