mariadb/mysql-test/suite/parts/r
Julius Goryavsky 2c734c980e MDEV-9519: Data corruption will happen on the Galera cluster size change
If we have a 2+ node cluster which is replicating from an async master
and the binlog_format is set to STATEMENT and multi-row inserts are executed
on a table with an auto_increment column such that values are automatically
generated by MySQL, then the server node generates wrong auto_increment
values, which are different from what was generated on the async master.

In the title of the MDEV-9519 it was proposed to ban start slave on a Galera
if master binlog_format = statement and wsrep_auto_increment_control = 1,
but the problem can be solved without such a restriction.

The causes and fixes:

1. We need to improve processing of changing the auto-increment values
after changing the cluster size.

2. If wsrep auto_increment_control switched on during operation of
the node, then we should immediately update the auto_increment_increment
and auto_increment_offset global variables, without waiting of the next
invocation of the wsrep_view_handler_cb() callback. In the current version
these variables retain its initial values if wsrep_auto_increment_control
is switched on during operation of the node, which leads to inconsistent
results on the different nodes in some scenarios.

3. If wsrep auto_increment_control switched off during operation of the node,
then we must return the original values of the auto_increment_increment and
auto_increment_offset global variables, as the user has set. To make this
possible, we need to add a "shadow copies" of these variables (which stores
the latest values set by the user).

https://jira.mariadb.org/browse/MDEV-9519
2019-02-26 07:45:11 +02:00
..
alter_data_directory_innodb.result Merge 10.1 into 10.2 2018-06-26 18:16:49 +03:00
insert_ignore-5421.result MDEV-5421 Assertion `! is_set()' fails on INSERT IGNORE when a table has no partition for a value 2014-01-23 00:03:05 +01:00
longname.result MDEV-14904 Backport innodb_default_row_format 2018-03-07 17:49:42 +02:00
optimizer.result Fixed warnings and build failures after last push 2010-08-02 19:39:45 +03:00
part_blocked_sql_func_innodb.result Post-push fixes for the bug #42849: 2009-12-14 20:27:43 +03:00
part_blocked_sql_func_myisam.result Post-push fixes for the bug #42849: 2009-12-14 20:27:43 +03:00
part_ctype_utf32.result More trivial test result updates 2013-07-08 18:29:52 +04:00
part_supported_sql_func_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
part_supported_sql_func_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter1_1_2_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter1_1_2_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter1_1_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter1_1_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter1_2_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter1_2_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter2_1_1_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter2_1_2_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter2_1_maria.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter2_1_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter2_2_1_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter2_2_2_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter2_2_maria.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter2_2_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter3_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter3_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter4_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter4_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_alter_innodb.result Merge branch '10.1' into 10.2 2018-05-10 13:01:42 +02:00
partition_alter_maria.result Merge branch '10.1' into 10.2 2018-05-10 13:01:42 +02:00
partition_alter_myisam.result Merge branch '10.1' into 10.2 2018-05-10 13:01:42 +02:00
partition_auto_increment_archive.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_auto_increment_blackhole.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_auto_increment_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_auto_increment_maria.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_auto_increment_max.result MDEV-9519: Data corruption will happen on the Galera cluster size change 2019-02-26 07:45:11 +02:00
partition_auto_increment_memory.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_auto_increment_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_basic_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_basic_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_basic_symlink_innodb.result Merge branch '10.1' into 10.2 2018-02-11 13:47:16 +01:00
partition_basic_symlink_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_bigint_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_bigint_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_bit_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_bit_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_char_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_char_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_datetime_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_datetime_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_debug.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_debug_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_debug_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_debug_sync_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_decimal_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_decimal_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_double_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_double_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_engine_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_engine_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_exch_innodb.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_myisam.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_myisam_innodb.result cleanup parts.partition_exch_* tests 2017-09-18 10:40:26 +02:00
partition_exch_qa.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_qa_1_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_exch_qa_1_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_exch_qa_2.result cleanup parts.partition_exch_* tests 2017-09-18 10:40:26 +02:00
partition_exch_qa_3.result cleanup parts.partition_exch_* tests 2017-09-18 10:40:26 +02:00
partition_exch_qa_4_innodb.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_qa_4_myisam.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_qa_5_innodb.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_qa_5_myisam.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_qa_6.result Update testcase post merge 2017-09-20 00:46:08 +03:00
partition_exch_qa_7_innodb.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_qa_7_myisam.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_qa_8_innodb.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_qa_8_myisam.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_qa_10.result Remove end . from error messages to get them consistent 2016-10-05 01:11:08 +03:00
partition_exch_qa_11.result MDEV-11941 - Lintian complains about executable bits 2017-03-07 22:28:33 +04:00
partition_exch_qa_12.result MDEV-4864 - Merge tests for EXCHANGE PARTITION feature 2013-09-27 16:58:49 +04:00
partition_exch_qa_13.result MDEV-4864 - Merge tests for EXCHANGE PARTITION feature 2013-09-27 16:58:49 +04:00
partition_exch_qa_14.result MDEV-13157 Specifying DATA DIRECTORY in tables leads to failing EXCHANGE PARTITION 2017-09-18 10:40:26 +02:00
partition_exch_qa_15.result cleanup parts.partition_exch_* tests 2017-09-18 10:40:26 +02:00
partition_exchange_archive.result cleanup: remove Item::intro_version 2016-12-12 20:27:25 +01:00
partition_exchange_blackhole.result MDEV-4864 - Merge tests for EXCHANGE PARTITION feature 2013-09-27 16:58:49 +04:00
partition_exchange_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_exchange_memory.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_exchange_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_float_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_float_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_innodb_status_file.result MDEV-6720 - enable connection log in mysqltest by default 2016-03-31 10:11:16 +04:00
partition_int_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_int_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_mdev6067.result MDEV-7635: Part 1 2017-02-10 06:30:42 -05:00
partition_mediumint_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_mediumint_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_mgm_lc0_archive.result cleanup: remove Item::intro_version 2016-12-12 20:27:25 +01:00
partition_mgm_lc0_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_mgm_lc0_memory.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_mgm_lc0_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_mgm_lc1_archive.result cleanup: remove Item::intro_version 2016-12-12 20:27:25 +01:00
partition_mgm_lc1_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_mgm_lc1_memory.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_mgm_lc1_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_mgm_lc2_archive.result cleanup: remove Item::intro_version 2016-12-12 20:27:25 +01:00
partition_mgm_lc2_innodb.result fixes for lower_case_table_names=2 2017-07-09 11:43:42 +02:00
partition_mgm_lc2_memory.result fixes for lower_case_table_names=2 2017-07-09 11:43:42 +02:00
partition_mgm_lc2_myisam.result fixes for lower_case_table_names=2 2017-07-09 11:43:42 +02:00
partition_recover_myisam.result post-merge fixes. 2011-07-02 22:12:12 +02:00
partition_repair_myisam.result Adjusted tests after the fix for bug mdev-9976. 2017-01-31 20:37:26 -08:00
partition_smallint_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_smallint_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_special_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_special_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_syntax_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_syntax_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_t55.out
partition_tinyint_innodb.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_tinyint_myisam.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
partition_value_innodb.result
partition_value_myisam.result
rpl_partition.result MDEV-13089 identifier quoting in partitioning 2017-07-05 17:15:59 +02:00
show_create.result MDEV-13089 identifier quoting in partitioning 2018-09-21 20:22:14 +02:00
truncate_locked.result MDEV-15551 Server hangs or assertion `strcmp(share->unique_file_name,filename) || share->last_version' fails in test_if_reopen or unexpected ER_LOCK_DEADLOCK 2018-07-19 11:35:39 +02:00
update_and_cache.result MDEV-16741 Assertion `m_extra_cache' failed in ha_partition::late_extra_cache 2018-09-10 19:30:06 +02:00