1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Merge pull request #880 from tempesta-tech/sysprg/MDEV-17421

MDEV-17421: mtr does not restart the server whose parameters were changed
This commit is contained in:
Jan Lindström
2019-01-23 18:03:51 +02:00
committed by GitHub
11 changed files with 113 additions and 23 deletions

View File

@@ -0,0 +1,5 @@
include/master-slave.inc
[connection master]
include/rpl_stop_server.inc [server_number=1]
new auto_increment_offset=111
include/rpl_end.inc

View File

@@ -0,0 +1,4 @@
include/master-slave.inc
[connection master]
auto_increment_offset=1
include/rpl_end.inc

View File

@@ -0,0 +1,31 @@
# This test verifies that mtr will restart the mysqld process,
# whose parameters were changed during the test. The verification
# itself is carried out in the following mtr_restart_t2 test.
# If mtr restart the mysqld process, then the auto_increment_offset
# parameter value will be reset to the default ("1"), but if there
# is no restart, then we will see the changed value ("111") during
# the next test.
#
--source include/have_binlog_format_row.inc
--source include/master-slave.inc
connection master;
let $auto_increment_offset = `SELECT @@global.auto_increment_offset`;
--let $rpl_server_number=1
source include/rpl_stop_server.inc;
--let $rpl_server_parameters=--auto-increment-offset=111
--let $keep_include_silent=1
source include/rpl_start_server.inc;
--let $keep_include_silent=0
let $auto_increment_offset_new = `SELECT @@global.auto_increment_offset`;
--echo new auto_increment_offset=$auto_increment_offset_new
--disable_query_log
--eval SET @@global.auto_increment_offset = $auto_increment_offset;
--enable_query_log
--connection master
--source include/rpl_end.inc

View File

@@ -0,0 +1,18 @@
# This test verifies that mtr will restart the mysqld process,
# whose parameters were changed during the previous test. If mtr
# restart the mysqld process, then the auto_increment_offsert
# parameter value will be reset to the default ("1"), but if there
# is no restart, then we will see the changed value ("111") in
# this test.
#
--source include/have_binlog_format_row.inc
--source include/master-slave.inc
connection master;
let $auto_increment_offset = `SELECT @@global.auto_increment_offset`;
--echo auto_increment_offset=$auto_increment_offset
--connection master
--source include/rpl_end.inc