mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.1 into 10.2
This commit is contained in:
@ -473,7 +473,7 @@ sub mtr_report_stats ($$$$) {
|
|||||||
$comment =~ s/[\"]//g;
|
$comment =~ s/[\"]//g;
|
||||||
|
|
||||||
# if a test case has to be retried it should have the result MTR_RES_FAILED in jUnit XML
|
# if a test case has to be retried it should have the result MTR_RES_FAILED in jUnit XML
|
||||||
if ($test->{'result'} eq "MTR_RES_FAILED" || $test->{'retries'}) {
|
if ($test->{'result'} eq "MTR_RES_FAILED" || $test->{'retries'} > 0) {
|
||||||
my $logcontents = $test->{'logfile-failed'} || $test->{'logfile'};
|
my $logcontents = $test->{'logfile-failed'} || $test->{'logfile'};
|
||||||
|
|
||||||
$xml_report .= qq(>\n\t\t\t<failure message="" type="MTR_RES_FAILED">\n<![CDATA[$logcontents]]>\n\t\t\t</failure>\n\t\t</testcase>\n);
|
$xml_report .= qq(>\n\t\t\t<failure message="" type="MTR_RES_FAILED">\n<![CDATA[$logcontents]]>\n\t\t\t</failure>\n\t\t</testcase>\n);
|
||||||
@ -639,6 +639,8 @@ sub mtr_error (@) {
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
use Carp qw(cluck);
|
||||||
|
cluck "Error happened" if $verbose > 0;
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -942,8 +942,14 @@ sub run_test_server ($$$) {
|
|||||||
if ( $result->is_failed() ) {
|
if ( $result->is_failed() ) {
|
||||||
my $worker_logdir= $result->{savedir};
|
my $worker_logdir= $result->{savedir};
|
||||||
my $log_file_name=dirname($worker_logdir)."/".$result->{shortname}.".log";
|
my $log_file_name=dirname($worker_logdir)."/".$result->{shortname}.".log";
|
||||||
$result->{'logfile-failed'} = mtr_lastlinesfromfile($log_file_name, 20);
|
|
||||||
rename $log_file_name,$log_file_name.".failed";
|
if (-e $log_file_name) {
|
||||||
|
$result->{'logfile-failed'} = mtr_lastlinesfromfile($log_file_name, 20);
|
||||||
|
} else {
|
||||||
|
$result->{'logfile-failed'} = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
rename $log_file_name, $log_file_name.".failed";
|
||||||
}
|
}
|
||||||
delete($result->{result});
|
delete($result->{result});
|
||||||
$result->{retries}= $retries+1;
|
$result->{retries}= $retries+1;
|
||||||
|
@ -17,13 +17,12 @@ set global debug_dbug=@old_dbug;
|
|||||||
|
|
||||||
connection master;
|
connection master;
|
||||||
|
|
||||||
### Dump thread is hanging despite slave has gracefully exited.
|
|
||||||
let $id=`SELECT id from information_schema.processlist where command='Binlog Dump'`;
|
let $id=`SELECT id from information_schema.processlist where command='Binlog Dump'`;
|
||||||
|
|
||||||
if ($id) {
|
if ($id) {
|
||||||
replace_result $id DUMP_THREAD;
|
replace_result $id DUMP_THREAD;
|
||||||
eval kill $id;
|
eval kill $id;
|
||||||
let $wait_condition= SELECT count(*)=0 from information_schema.processlist where command='Binlog Dump';
|
let $wait_condition= SELECT count(*)=0 from information_schema.processlist where command='Killed';
|
||||||
source include/wait_condition.inc;
|
source include/wait_condition.inc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -865,7 +865,7 @@ VARIABLE_SCOPE GLOBAL
|
|||||||
VARIABLE_TYPE INT UNSIGNED
|
VARIABLE_TYPE INT UNSIGNED
|
||||||
VARIABLE_COMMENT Number of threads performing background key rotation and scrubbing
|
VARIABLE_COMMENT Number of threads performing background key rotation and scrubbing
|
||||||
NUMERIC_MIN_VALUE 0
|
NUMERIC_MIN_VALUE 0
|
||||||
NUMERIC_MAX_VALUE 4294967295
|
NUMERIC_MAX_VALUE 255
|
||||||
NUMERIC_BLOCK_SIZE 0
|
NUMERIC_BLOCK_SIZE 0
|
||||||
ENUM_VALUE_LIST NULL
|
ENUM_VALUE_LIST NULL
|
||||||
READ_ONLY NO
|
READ_ONLY NO
|
||||||
|
@ -21050,7 +21050,7 @@ static MYSQL_SYSVAR_UINT(encryption_threads, srv_n_fil_crypt_threads,
|
|||||||
"scrubbing",
|
"scrubbing",
|
||||||
NULL,
|
NULL,
|
||||||
innodb_encryption_threads_update,
|
innodb_encryption_threads_update,
|
||||||
srv_n_fil_crypt_threads, 0, UINT_MAX32, 0);
|
0, 0, 255, 0);
|
||||||
|
|
||||||
static MYSQL_SYSVAR_UINT(encryption_rotate_key_age,
|
static MYSQL_SYSVAR_UINT(encryption_rotate_key_age,
|
||||||
srv_fil_crypt_rotate_key_age,
|
srv_fil_crypt_rotate_key_age,
|
||||||
|
@ -21125,7 +21125,7 @@ static MYSQL_SYSVAR_UINT(encryption_threads, srv_n_fil_crypt_threads,
|
|||||||
"scrubbing",
|
"scrubbing",
|
||||||
NULL,
|
NULL,
|
||||||
innodb_encryption_threads_update,
|
innodb_encryption_threads_update,
|
||||||
srv_n_fil_crypt_threads, 0, UINT_MAX32, 0);
|
0, 0, 255, 0);
|
||||||
|
|
||||||
static MYSQL_SYSVAR_UINT(encryption_rotate_key_age,
|
static MYSQL_SYSVAR_UINT(encryption_rotate_key_age,
|
||||||
srv_fil_crypt_rotate_key_age,
|
srv_fil_crypt_rotate_key_age,
|
||||||
|
Reference in New Issue
Block a user