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

@@ -15,16 +15,17 @@ use PerconaTest;
use Sandbox;
require "$trunk/bin/pt-config-diff";
require VersionParser;
my $dp = new DSNParser(opts=>$dsn_opts);
my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp);
my $master_dbh = $sb->get_dbh_for('master');
my $slave_dbh = $sb->get_dbh_for('slave1');
my $source_dbh = $sb->get_dbh_for('source');
my $replica_dbh = $sb->get_dbh_for('replica1');
if ( !$master_dbh ) {
plan skip_all => 'Cannot connect to sandbox master';
if ( !$source_dbh ) {
plan skip_all => 'Cannot connect to sandbox source';
}
elsif ( !$slave_dbh ) {
plan skip_all => 'Cannot connect to sandbox slave';
elsif ( !$replica_dbh ) {
plan skip_all => 'Cannot connect to sandbox replica';
}
my $cnf = '/tmp/12345/my.sandbox.cnf';
@@ -55,7 +56,7 @@ is(
"No output when no diff"
);
# Diff master to slave1. There should be several differences.
# Diff source to replica1. There should be several differences.
$output = output(
sub { $retval = pt_config_diff::main(
'h=127.1,P=12345,u=msandbox,p=msandbox', 'P=12346')
@@ -99,7 +100,7 @@ is(
"No output"
);
# Compare master config to slave active/SHOW VARS
# Compare source config to replica active/SHOW VARS
$output = output(
sub { $retval = pt_config_diff::main(
$cnf, 'h=127.1,P=12346,u=msandbox,p=msandbox')
@@ -110,7 +111,7 @@ $output = output(
is(
$retval,
1,
"Master my.sandbox.cnf differs from slave active config"
"Source my.sandbox.cnf differs from replica active config"
);
like(
@@ -151,7 +152,7 @@ $output = output(
is(
$retval,
1,
"Master and slave option files differ"
"Source and replica option files differ"
);
like(