PT-2340 - Support MySQL 8.4

- Updated modules and tests for pt-table-sync, pt-table-usage, pt-upgrade, pt-variable-advisor
This commit is contained in:
Sveta Smirnova
2024-08-03 17:03:48 +03:00
parent 56599f01ad
commit a38bee6d60
69 changed files with 1442 additions and 1304 deletions
+24 -2
View File
@@ -2034,7 +2034,7 @@ sub get_cxn_params {
$dsn = 'DBI:mysql:' . ( $info->{D} || '' ) . ';'
. join(';', map { "$opts{$_}->{dsn}=$info->{$_}" }
grep { defined $info->{$_} }
qw(F h P S A))
qw(F h P S A s))
. ';mysql_read_default_group=client'
. ($info->{L} ? ';mysql_local_infile=1' : '');
}
@@ -3425,6 +3425,13 @@ sub get_rules {
return $args{variables}->{init_slave} ? 1 : 0;
},
},
{
id => 'init_replica',
code => sub {
my ( %args ) = @_;
return $args{variables}->{init_replica} ? 1 : 0;
},
},
{
id => 'innodb_additional_mem_pool_size',
code => sub {
@@ -3671,6 +3678,13 @@ sub get_rules {
return _var_gt($args{variables}->{slave_net_timeout}, 60);
},
},
{
id => 'replica_net_timeout',
code => sub {
my ( %args ) = @_;
return _var_gt($args{variables}->{replica_net_timeout}, 60);
},
},
{
id => 'slave_skip_errors',
code => sub {
@@ -3679,6 +3693,14 @@ sub get_rules {
&& $args{variables}->{slave_skip_errors} ne 'OFF' ? 1 : 0;
},
},
{
id => 'replica_skip_errors',
code => sub {
my ( %args ) = @_;
return $args{variables}->{replica_skip_errors}
&& $args{variables}->{replica_skip_errors} ne 'OFF' ? 1 : 0;
},
},
{
id => 'sort_buffer_size-1',
code => sub {
@@ -5538,7 +5560,7 @@ verbosity, you'll see subsequent sentences.
severity: note
Are you trying to write to more than one server in a dual-master or
Are you trying to write to more than one server in a dual-source or
ring replication configuration? This is potentially very dangerous and in
most cases is a serious mistake. Most people's reasons for doing this are
actually not valid at all.