Commit 1d307ed4 authored by Aleksey Midenkov's avatar Aleksey Midenkov

MDEV-29025 MTR doesn't print stack trace for bootstrap crashes

parent 1bdcffb0
......@@ -145,6 +145,7 @@ my $extra_path;
my $mariabackup_path;
my $mariabackup_exe;
my $garbd_exe;
my $num_saved_cores= 0; # Number of core files saved in vardir/log/ so far.
our @global_suppressions;
......@@ -726,7 +727,6 @@ sub main {
sub run_test_server ($$$) {
my ($server, $tests, $childs) = @_;
my $num_saved_cores= 0; # Number of core files saved in vardir/log/ so far.
my $num_saved_datadir= 0; # Number of datadirs saved in vardir/log/ so far.
my $num_failed_test= 0; # Number of tests failed so far
my $test_failure= 0; # Set true if test suite failed
......@@ -3246,6 +3246,19 @@ sub mysql_install_db {
verbose => $opt_verbose,
) != 0)
{
find(
{
no_chdir => 1,
wanted => sub
{
My::CoreDump::core_wanted(\$num_saved_cores,
$opt_max_save_core,
@opt_cases == 0,
$exe_mysqld_bootstrap, $opt_parallel);
}
},
$install_datadir);
my $data= mtr_grab_file($path_bootstrap_log);
mtr_error("Error executing mysqld --bootstrap\n" .
"Could not install system database from $bootstrap_sql_file\n" .
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment