mariadb/mysql-test/std_data
Sachin Setiya 27664ef29d MDEV-20574 Position of events reported by mysqlbinlog is wrong with encrypted binlogs, SHOW BINLOG EVENTS reports the correct one.
Analysis

Mysqlbinlog output for encrypted binary log
#Q> insert into tab1 values (3,'row 003')
#190912 17:36:35 server id 10221  end_log_pos 980 CRC32 0x53bcb3d3  Table_map: `test`.`tab1` mapped to number 19
# at 940
#190912 17:36:35 server id 10221  end_log_pos 1026 CRC32 0xf2ae5136     Write_rows: table id 19 flags: STMT_END_F

Here we can see Table_map_log_event ends at 980 but Next event starts at 940.
And the reason for that is we do not send START_ENCRYPTION_EVENT to the slave

Solution:-
Send Start_encryption_log_event as Ignorable_log_event to slave(mysqlbinlog),
So that mysqlbinlog can update its log_pos.
Since Slave can request multiple FORMAT_DESCRIPTION_EVENT while master does not
have so We only update slave master pos when master actually have the
FORMAT_DESCRIPTION_EVENT. Similar logic should be applied for START_ENCRYPTION_EVENT.

Also added the test case when new server reads the data from old server which
does not send START_ENCRYPTION_EVENT to slave.

Master Slave Upgrade Scenario.
When Slave is updated first, Slave will have extra logic of handling
START_ENCRYPTION_EVENT But master willnot be sending START_ENCRYPTION_EVENT.
So there will be no issue.
When Master is updated first, It will send  START_ENCRYPTION_EVENT to
slave , But slave will ignore this event in queue_event.
2019-10-08 14:35:34 +05:30
..
crldir SSL test fixes 2019-03-01 12:41:05 -05:00
ctype_upgrade
frm MDEV-16518 MYSQL57_GENERATED_FIELD: The code in TABLE_SHARE::init_from_binary_frm_image() is not safe 2019-04-26 14:01:21 +04:00
funcs_1 MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02:00
ldml Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
loaddata Backporting MDEV-15597 Add class Load_data_outvar and avoid using Item::STRING_ITEM for Item_user_var_as_out_param detection 2019-02-23 17:43:59 +04:00
mysql5613mysql
mysql_upgrade Update tests for mysql_upgrade_view 2015-04-14 11:01:31 +10:00
old_decimal MDEV-7269 mysqlbinlog Don't know how to handle column type=0 meta=0 (0000)# 2015-06-04 18:49:12 +04:00
parts
temporal_upgrade
vcol_upgrade Part2: MDEV-18156 Assertion 0' failed or btr_validate_index(index, 0, false)' in row_upd_sec_index_entry or error code 126: Index is corrupted upon DELETE with PAD_CHAR_TO_FULL_LENGTH 2019-09-03 09:51:35 +04:00
zoneinfo
14897.frm
bad2_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad3_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad4_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad5_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad6_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad_gis_data.dat
bad_master.info MDEV-9383: Server fails to read master.info after upgrade 10.0 -> 10.1 2016-04-08 10:31:03 +02:00
bad_row_type.frm MDEV-7333 "'show table status like 'table_name'" on tokudb table lead to MariaDB crash 2015-01-13 19:27:28 +01:00
bad_row_type.MYD MDEV-7333 "'show table status like 'table_name'" on tokudb table lead to MariaDB crash 2015-01-13 19:27:28 +01:00
bad_row_type.MYI MDEV-7333 "'show table status like 'table_name'" on tokudb table lead to MariaDB crash 2015-01-13 19:27:28 +01:00
binlog_before_20574.bin MDEV-20574 Position of events reported by mysqlbinlog is wrong with encrypted binlogs, SHOW BINLOG EVENTS reports the correct one. 2019-10-08 14:35:34 +05:30
binlog_savepoint.000001
binlog_transaction.000001
bug15328.cnf
bug16266.000001
bug19371.frm
bug19371.MYD
bug19371.MYI
bug30435_5k.txt
bug30435_10k_items.txt
bug33029-slave-relay-bin.000001
bug35469.dat
bug36055.frm
bug36055.MYD
bug36055.MYI
bug37631.frm
bug37631.MYD
bug37631.MYI
bug40482-bin.000001
bug46565.ARZ
bug46565.frm
bug47012.ARM
bug47012.ARZ
bug47012.frm
bug47142_master-bin.000001
bug47205.frm
bug48265.frm
bug48449.frm
bug48633.ARM
bug48633.ARZ
bug48633.frm
bug49823.CSM
bug49823.CSV
bug49823.frm
bug887051.txt
bug11747416_32228_binlog.000001
bug16171518_1.dat Bug #16171518 - LOAD XML DOES NOT HANDLE EMPTY ELEMENTS 2015-08-18 12:24:27 +05:30
bug16171518_2.dat Bug #16171518 - LOAD XML DOES NOT HANDLE EMPTY ELEMENTS 2015-08-18 12:24:27 +05:30
cacert.pem MDEV-18131 MariaDB does not verify IP addresses from subject alternative 2019-04-28 12:49:59 +02:00
cakey.pem MDEV-18131 MariaDB does not verify IP addresses from subject alternative 2019-04-28 12:49:59 +02:00
charset_utf8.txt
checkDBI_DBD-mysql.pl Update FSF Address 2019-05-11 21:29:06 +03:00
client-cert.crl SSL test fixes 2019-03-01 12:41:05 -05:00
client-cert.pem MDEV-18131 MariaDB does not verify IP addresses from subject alternative 2019-04-28 12:49:59 +02:00
client-key.pem MDEV-18131 MariaDB does not verify IP addresses from subject alternative 2019-04-28 12:49:59 +02:00
cluster_7022_table.frm
cluster_7022_table.MYD
cluster_7022_table.MYI
corrupt-relay-bin.000624
corrupt_t1#P#p1.MYI
corrupt_t1.MYI
des_key_file
empty_file Add an empty file to std_data for future testing purposes 2016-03-22 22:20:33 +02:00
galera-cert.pem Update Galera failing test list and record correct results 2019-07-04 19:42:30 +03:00
galera-key.pem Update Galera failing test list and record correct results 2019-07-04 19:42:30 +03:00
galera-upgrade-ca-cert.pem Update Galera failing test list and record correct results 2019-07-04 19:42:30 +03:00
galera-upgrade-server-cert.pem Update Galera failing test list and record correct results 2019-07-04 19:42:30 +03:00
galera-upgrade-server-key.pem Update Galera failing test list and record correct results 2019-07-04 19:42:30 +03:00
host_old.frm
host_old.MYD
host_old.MYI
init_file.dat
init_file_longline_3816.sql
intersect-bug50389.tsv
keys.txt MDEV-12253: Buffer pool blocks are accessed after they have been freed 2017-04-26 15:19:16 +03:00
keys2.txt MDEV-12253: Buffer pool blocks are accessed after they have been freed 2017-04-26 15:19:16 +03:00
keys3.txt MDEV-12253: Buffer pool blocks are accessed after they have been freed 2017-04-26 15:19:16 +03:00
loaddata1.dat
loaddata2.dat
loaddata3.dat
loaddata4.dat
loaddata5.dat
loaddata6.dat
loaddata7.dat
loaddata_dq.dat
loaddata_pair.dat
loaddata_utf8.dat
loadxml.dat test case for loadxml and spaces 2017-07-18 14:59:33 +02:00
loadxml2.dat
logkey.txt MDEV-9011: Redo log encryption does not work 2015-10-30 13:12:30 +02:00
long_table_name.frm
long_table_name.MYD
long_table_name.MYI
mariadb-5.5-binlog.000001 MDEV-5769: Slave crashes on attempt to do parallel replication from an older master 2014-03-04 08:48:32 +01:00
master-bin.000001
mdev-4645-binlog_checksum.binlog
mdev-4645-binlog_group_id.binlog
mdev-4645-binlog_group_id_checksum.binlog
mdev-4645-binlog_none.binlog
mdev5029_1.frm
mdev5029_2.frm
mdev5029_2.MAD
mdev5029_2.MAI
mdev6020-mysql-bin.000001 MDEV-5262, MDEV-5914, MDEV-5941, MDEV-6020: Deadlocks during parallel 2014-06-03 10:31:11 +02:00
mdev17909#P#p20181029.MYD MDEV-17909 Problem by MariaDB Update 10.1.32 -> 10.2.19 (Incorrect information in file: .frm) 2018-12-20 08:06:55 +01:00
mdev17909#P#p20181029.MYI MDEV-17909 Problem by MariaDB Update 10.1.32 -> 10.2.19 (Incorrect information in file: .frm) 2018-12-20 08:06:55 +01:00
mdev17909#P#p20181128.MYD MDEV-17909 Problem by MariaDB Update 10.1.32 -> 10.2.19 (Incorrect information in file: .frm) 2018-12-20 08:06:55 +01:00
mdev17909#P#p20181128.MYI MDEV-17909 Problem by MariaDB Update 10.1.32 -> 10.2.19 (Incorrect information in file: .frm) 2018-12-20 08:06:55 +01:00
mdev17909.frm MDEV-17909 Problem by MariaDB Update 10.1.32 -> 10.2.19 (Incorrect information in file: .frm) 2018-12-20 08:06:55 +01:00
mdev17909.par MDEV-17909 Problem by MariaDB Update 10.1.32 -> 10.2.19 (Incorrect information in file: .frm) 2018-12-20 08:06:55 +01:00
Moscow_leap
mysql56datetime.frm
mysql56datetime.MYD
mysql56datetime.MYI
mysql56time.frm
mysql56time.MYD
mysql56time.MYI
mysql56timestamp.frm
mysql56timestamp.MYD
mysql56timestamp.MYI
mysql57_virtual.frm MDEV-7563 Support CHECK constraint as in (or close to) SQL Standard 2016-06-30 11:43:02 +02:00
mysql57_virtual.MYD MDEV-7563 Support CHECK constraint as in (or close to) SQL Standard 2016-06-30 11:43:02 +02:00
mysql57_virtual.MYI MDEV-7563 Support CHECK constraint as in (or close to) SQL Standard 2016-06-30 11:43:02 +02:00
new-format-relay-log-win.info MDEV-6364: Migrate a slave from MySQL 5.6 to MariaDB 10 break replication 2014-06-24 14:43:08 +02:00
new-format-relay-log.info MDEV-6364: Migrate a slave from MySQL 5.6 to MariaDB 10 break replication 2014-06-24 14:43:08 +02:00
numbers.txt
old-format-relay-log-win.info MDEV-6364: Migrate a slave from MySQL 5.6 to MariaDB 10 break replication 2014-06-24 14:43:08 +02:00
old-format-relay-log.info MDEV-6364: Migrate a slave from MySQL 5.6 to MariaDB 10 break replication 2014-06-24 14:43:08 +02:00
old_table-323.frm
onerow.xml
rpl_bug28618.dat
rpl_loaddata.dat
rpl_loaddata2.dat
rpl_mixed.dat
rpl_timezone.dat
rpl_timezone2.dat
server-cert.crl SSL test fixes 2019-03-01 12:41:05 -05:00
server-cert.pem MDEV-18131 MariaDB does not verify IP addresses from subject alternative 2019-04-28 12:49:59 +02:00
server-key.pem MDEV-18131 MariaDB does not verify IP addresses from subject alternative 2019-04-28 12:49:59 +02:00
server-new-cert.pem SSL test fixes 2019-03-01 12:41:05 -05:00
server-new-key.pem SSL test fixes 2019-03-01 12:41:05 -05:00
server8k-cert.pem MDEV-18131 MariaDB does not verify IP addresses from subject alternative 2019-04-28 12:49:59 +02:00
server8k-key.pem MDEV-18131 MariaDB does not verify IP addresses from subject alternative 2019-04-28 12:49:59 +02:00
serversan-cert.pem Merge branch '10.1' into 10.2 2019-05-04 17:04:55 +02:00
serversan-key.pem Merge branch '10.1' into 10.2 2019-05-04 17:04:55 +02:00
t917689.ARZ
trunc_binlog.000001
untrusted-cacert.pem
vchar.frm
vcol_autoinc.frm MDEV-12936 upgrade to 10.2.6 failed upon tables with virtual columns 2017-07-05 17:15:58 +02:00
vcol_autoinc.MYD MDEV-12936 upgrade to 10.2.6 failed upon tables with virtual columns 2017-07-05 17:15:58 +02:00
vcol_autoinc.MYI MDEV-12936 upgrade to 10.2.6 failed upon tables with virtual columns 2017-07-05 17:15:58 +02:00
warnings_loaddata.dat
words.dat
words2.dat
words3.dat
wsrep_notify.sh Merge branch '10.0-galera' into 10.1 2015-07-14 16:05:29 -04:00