mariadb/mysql-test/suite/binlog/r
Andrei Elkin d8974ebd67 MDEV-14431 binlog.binlog_flush_binlogs_delete_domain failed in buildbot
The test and also rpl_gtid_delete_domain failed on PPC64 platform
due to an incorrectly specified actual key for searching
in a gtid domain system hash. While the correct size is 32 bits
the supplied value was 8 bytes of long int size on the platform.
The problem became evident thanks to the big endiness which
cut off the *least* significant part of the value field.

Fixed with correcting a dynamic array initialization to hold
now uint32 values as well as the values extraction for
searching in the gtid domain system hash.
A new added test ensures no overflowed values are accepted
for deletion which prevents inadvertent action. Notice though

MariaDB [test]> set @@session.gtid_domain_id=(1 << 32) + 1;
MariaDB [test]> show warnings;
+---------+------+--------------------------------------------------------+
| Level   | Code | Message                                                |
+---------+------+--------------------------------------------------------+
| Warning | 1292 | Truncated incorrect gtid_domain_id value: '4294967297' |
+---------+------+--------------------------------------------------------+
MariaDB [test]> select @@session.gtid_domain_id;
+--------------------------+
| @@session.gtid_domain_id |
+--------------------------+
|               4294967295 |
+--------------------------+
2018-10-16 12:42:57 +03:00
..
binlog_base64_flag.result Merging TO_BASE64() and FROM_BASE64() from MySQL-5.6 2013-09-23 18:58:33 +04:00
binlog_bug23533.result BUG#12371924. Fxi test case 2011-04-25 23:49:56 +04:00
binlog_bug36391.result WL#5867, reorganize test cases of bugs suite 2011-04-14 00:18:08 +04:00
binlog_checkpoint.result MDEV-7402 'reset master' hangs, waits for signalled COND_xid_list 2015-01-19 14:32:28 +01:00
binlog_checksum.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_commit_wait.result MDEV-7802: group commit status variable addition 2015-04-29 11:29:25 +02:00
binlog_database.result Don't write DROP TEMPORARY TABLE to binary log 2015-10-05 17:14:13 +02:00
binlog_delete_and_flush_index.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_dmls_on_tmp_tables_readonly.result Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
binlog_drop_if_exists.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_flush_binlogs_delete_domain.result MDEV-14431 binlog.binlog_flush_binlogs_delete_domain failed in buildbot 2018-10-16 12:42:57 +03:00
binlog_format_switch_in_tmp_table.result Bug #45855 row events in binlog after switch from binlog_fmt=mix to stmt with open tmp tbl 2010-01-26 17:41:15 +08:00
binlog_grant.result MDEV-6066: Merge new defaults from 5.6 and 5.7 (defaults changed, QC can be stopped with no-zero size) 2015-09-04 10:33:56 +02:00
binlog_gtid_delete_domain_debug.result never add new error messages to old GA releases! 2017-11-19 14:43:17 +01:00
binlog_implicit_commit.result MDEV-5115 RBR from MySQL 5.6 to MariaDB 10.0 does not work 2013-12-09 12:37:45 +01:00
binlog_incident.result
binlog_index.result Merge branch '5.5' into 10.0 2016-12-09 16:33:48 +01:00
binlog_innodb.result MDEV-5115 RBR from MySQL 5.6 to MariaDB 10.0 does not work 2013-12-09 12:37:45 +01:00
binlog_innodb_row.result Don't write DROP TEMPORARY TABLE to binary log 2015-10-05 17:14:13 +02:00
binlog_ioerr.result MDEV-26: Global transaction ID 2013-03-26 10:35:34 +01:00
binlog_killed.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_killed_simulate.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_max_binlog_stmt_cache_size.result Mdev-4774- Fix tests cases 2017-01-31 10:12:22 +05:30
binlog_max_extension.result BUG#46166 2010-12-07 16:55:25 +00:00
binlog_mdev342.result MDEV-5115 RBR from MySQL 5.6 to MariaDB 10.0 does not work 2013-12-09 12:37:45 +01:00
binlog_mdev717.result MDEV-717 LP:1003679 - Wrong binlog order on concurrent DROP schema and 2016-05-05 11:28:35 +04:00
binlog_mixed_cache_stat.result BUG#57275 binlog_cache_size affects trx- and stmt-cache and gets twice the expected memory 2010-11-05 17:42:37 +00:00
binlog_mixed_load_data.result MDEV-5115 RBR from MySQL 5.6 to MariaDB 10.0 does not work 2013-12-09 12:37:45 +01:00
binlog_mysqlbinlog-cp932.result BUG#14659685 - main.mysqlbinlog_row_myisam and 2012-10-30 10:40:07 +05:30
binlog_mysqlbinlog2.result MDEV-6066: Merge new defaults from 5.6 and 5.7 (defaults changed, QC can be stopped with no-zero size) 2015-09-04 10:33:56 +02:00
binlog_mysqlbinlog_base64.result BUG#14659685 - main.mysqlbinlog_row_myisam and 2012-10-30 10:40:07 +05:30
binlog_mysqlbinlog_row.result MDEV-8426 mysqlbinlog: "Corrupted replication event was detected. 2015-11-10 13:46:57 +02:00
binlog_mysqlbinlog_row_innodb.result MDEV-8426 mysqlbinlog: "Corrupted replication event was detected. 2015-11-10 13:46:57 +02:00
binlog_mysqlbinlog_row_myisam.result MDEV-8426 mysqlbinlog: "Corrupted replication event was detected. 2015-11-10 13:46:57 +02:00
binlog_mysqlbinlog_row_trans.result MDEV-8426 mysqlbinlog: "Corrupted replication event was detected. 2015-11-10 13:46:57 +02:00
binlog_old_versions.result MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
binlog_parallel_replication_marks_row.result MDEV-13248 binlog.binlog_parallel_replication_marks_row fails in buildbot 2017-07-06 00:45:43 +03:00
binlog_parallel_replication_marks_stm_mix.result MDEV-13248 binlog.binlog_parallel_replication_marks_row fails in buildbot 2017-07-06 00:45:43 +03:00
binlog_query_filter_rules.result BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
binlog_reset_master.result BUG#12574820: binlog.binlog_tmp_table timing out in daily and weekly trunk run 2011-05-26 12:50:43 +02:00
binlog_row_annotate.result MDEV-8426 mysqlbinlog: "Corrupted replication event was detected. 2015-11-10 13:46:57 +02:00
binlog_row_binlog.result Merge branch '10.0' into 10.1 2016-05-04 15:23:26 +02:00
binlog_row_cache_stat.result BUG#57275 binlog_cache_size affects trx- and stmt-cache and gets twice the expected memory 2010-11-05 17:42:37 +00:00
binlog_row_ctype_cp932.result Ensure that fields declared with NOT NULL doesn't have DEFAULT values if not specified and if not timestamp or auto_increment 2015-08-18 11:18:57 +03:00
binlog_row_ctype_ucs.result MDEV-6066: Merge new defaults from 5.6 and 5.7 (defaults changed, QC can be stopped with no-zero size) 2015-09-04 10:33:56 +02:00
binlog_row_drop_tbl.result MDEV-5115 RBR from MySQL 5.6 to MariaDB 10.0 does not work 2013-12-09 12:37:45 +01:00
binlog_row_drop_tmp_tbl.result Don't write DROP TEMPORARY TABLE to binary log 2015-10-05 17:14:13 +02:00
binlog_row_insert_select.result MDEV-5115 RBR from MySQL 5.6 to MariaDB 10.0 does not work 2013-12-09 12:37:45 +01:00
binlog_row_mix_innodb_myisam.result Don't write DROP TEMPORARY TABLE to binary log 2015-10-05 17:14:13 +02:00
binlog_row_mysqlbinlog_db_filter.result
binlog_row_mysqlbinlog_options.result MDEV-8426 mysqlbinlog: "Corrupted replication event was detected. 2015-11-10 13:46:57 +02:00
binlog_row_mysqlbinlog_verbose.result BUG#14548159: NUMEROUS CASES OF INCORRECT IDENTIFIER 2012-09-22 17:50:51 +05:30
binlog_server_id.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_sf.result BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
binlog_spurious_ddl_errors.result Description 2013-01-18 12:32:37 +05:30
binlog_sql_mode.result Bug#12601974 - STORED PROCEDURE SQL_MODE=NO_BACKSLASH_ESCAPES IGNORED AND BREAKS REPLICATION 2012-02-29 12:23:15 +05:30
binlog_start_comment.result
binlog_statement_insert_delayed.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_stm_binlog.result MDEV-6247: Merge 10.0-galera to 10.1. 2014-08-26 15:43:46 +03:00
binlog_stm_blackhole.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_stm_cache_stat.result BUG#57275 binlog_cache_size affects trx- and stmt-cache and gets twice the expected memory 2010-11-05 17:42:37 +00:00
binlog_stm_ctype_cp932.result Ensure that fields declared with NOT NULL doesn't have DEFAULT values if not specified and if not timestamp or auto_increment 2015-08-18 11:18:57 +03:00
binlog_stm_ctype_ucs.result MDEV-6066: Merge new defaults from 5.6 and 5.7 (defaults changed, QC can be stopped with no-zero size) 2015-09-04 10:33:56 +02:00
binlog_stm_do_db.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_stm_drop_tbl.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_stm_drop_tmp_tbl.result 10.0-base merge 2013-12-16 13:02:21 +01:00
binlog_stm_insert_select.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_stm_mix_innodb_myisam.result Merge commit '96badb16afcf' into 10.0 2015-08-03 23:09:43 +03:00
binlog_stm_ps.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_stm_row.result MDEV-5115 RBR from MySQL 5.6 to MariaDB 10.0 does not work 2013-12-09 12:37:45 +01:00
binlog_stm_unsafe_warning.result print binlog unsafe errors at log_warnings level 1, not 2. 2014-09-18 15:24:30 +02:00
binlog_stm_user_variables.result Merge 10.0-base -> 10.0 (GTID). 2013-04-17 15:17:01 +02:00
binlog_switch_inside_trans.result Bug #15868071 USING SET GLOBAL SQL_LOG_BIN SHOULD NOT BE ALLOWED 2014-09-24 09:44:48 +08:00
binlog_tmp_table.result BUG#53101: binlog.binlog_tmp_table fails on sol10 sparc64 max in 2010-04-27 12:25:55 +01:00
binlog_tmp_table_row.result MDEV-9266 Creating index on temporaray table breaks replication 2018-07-18 17:13:24 +05:30
binlog_truncate_innodb.result Bug#42643: InnoDB does not support replication of TRUNCATE TABLE 2010-05-25 17:01:38 -03:00
binlog_truncate_kill.result 5.5.38 merge 2014-06-06 00:07:27 +02:00
binlog_truncate_myisam.result MDEV-5115 RBR from MySQL 5.6 to MariaDB 10.0 does not work 2013-12-09 12:37:45 +01:00
binlog_unsafe.result MDEV-12436: binlog.binlog_unsafe - assumed len(hostname) <= 50 (#385) 2017-07-15 19:45:37 +03:00
binlog_variables_log_bin.result MDEV-7110 : Add missing MySQL variable log_bin_basename and log_bin_index 2015-06-09 13:38:29 -04:00
binlog_variables_log_bin_index.result MDEV-7110 : Add missing MySQL variable log_bin_basename and log_bin_index 2015-06-09 13:38:29 -04:00
binlog_variables_relay_log.result MDEV-7110 : Add missing MySQL variable log_bin_basename and log_bin_index 2015-06-09 13:38:29 -04:00
binlog_variables_relay_log_index.result MDEV-7110 : Add missing MySQL variable log_bin_basename and log_bin_index 2015-06-09 13:38:29 -04:00
binlog_write_error.result rename debug variable to debug_dbug, to make test pass in release builds 2011-12-15 22:07:58 +01:00
binlog_xa_recover.result MDEV-5115 RBR from MySQL 5.6 to MariaDB 10.0 does not work 2013-12-09 12:37:45 +01:00
load_data_stm_view.result 5.5 merge 2014-11-19 17:23:39 +01:00
mysqladmin.result MDEV-12612 mysqladmin --local flush... to use FLUSH LOCAL 2017-05-24 11:59:04 +02:00
temptable_uservar_disconnect-7938.result MDEV-7938 MariaDB Crashes Suddenly while writing binlogs 2015-04-27 15:42:12 +02:00