mariadb/mysql-test/suite/multi_source
Monty 25b5c63905 MDEV-33856: Alternative Replication Lag Representation via Received/Executed Master Binlog Event Timestamps
This commit adds 3 new status variables to 'show all slaves status':

- Master_last_event_time ; timestamp of the last event read from the
  master by the IO thread.
- Slave_last_event_time ; Master timestamp of the last event committed
  on the slave.
- Master_Slave_time_diff: The difference of the above two timestamps.

All the above variables are NULL until the slave has started and the
slave has read one query event from the master that changes data.

- Added information_schema.slave_status, which allows us to remove:
   - show_master_info(), show_master_info_get_fields(),
     send_show_master_info_data(), show_all_master_info()
   - class Sql_cmd_show_slave_status.
   - Protocol::store(I_List<i_string_pair>* str_list) as it is not
     used anymore.
- Changed old SHOW SLAVE STATUS and SHOW ALL SLAVES STATUS to
  use the SELECT code path, as all other SHOW ... STATUS commands.

Other things:
- Xid_log_time is set to time of commit to allow slave that reads the
  binary log to calculate Master_last_event_time and
  Slave_last_event_time.
  This is needed as there is not 'exec_time' for row events.
- Fixed that Load_log_event calculates exec_time identically to
  Query_event.
- Updated RESET SLAVE to reset Master/Slave_last_event_time
- Updated SQL thread's update on first transaction read-in to
  only update Slave_last_event_time on group events.
- Fixed possible (unlikely) bugs in sql_show.cc ...old_format() functions
  if allocation of 'field' would fail.

Reviewed By:
Brandon Nesterenko <brandon.nesterenko@mariadb.com>
Kristian Nielsen <knielsen@knielsen-hq.org>
2024-07-25 08:57:27 -06:00
..
change_master.result
change_master.test
disabled.def
gtid.cnf
gtid.result
gtid.test
gtid_ignore_duplicates.cnf
gtid_ignore_duplicates.result Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
gtid_ignore_duplicates.test Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
gtid_slave_pos.result
gtid_slave_pos.test
info_logs-master.opt
info_logs.result MDEV-33856: Alternative Replication Lag Representation via Received/Executed Master Binlog Event Timestamps 2024-07-25 08:57:27 -06:00
info_logs.test
load_data.result MDEV-19123 Change default charset from latin1 to utf8mb4 2024-07-11 10:21:07 +04:00
load_data.test MDEV-19123 Change default charset from latin1 to utf8mb4 2024-07-11 10:21:07 +04:00
mdev-8874.cnf
mdev-8874.result
mdev-8874.test
mdev-9544.cnf
mdev-9544.result
mdev-9544.test Merge branch '11.3' into 11.4 2024-02-15 13:53:21 +01:00
multi_parallel.cnf
multi_parallel.result
multi_parallel.test
multi_parallel_loop.inc
multi_source_slave_alias_replica.result MDEV-33856: Alternative Replication Lag Representation via Received/Executed Master Binlog Event Timestamps 2024-07-25 08:57:27 -06:00
multi_source_slave_alias_replica.test
multisource.result
multisource.test
multisource_for_channel.result
multisource_for_channel.test
my.cnf
relaylog_events.result
relaylog_events.test
replicate_rewrite_db_dynamic.cnf
replicate_rewrite_db_dynamic.result
replicate_rewrite_db_dynamic.test
reset_slave.result Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
reset_slave.test
simple.result MDEV-33856: Alternative Replication Lag Representation via Received/Executed Master Binlog Event Timestamps 2024-07-25 08:57:27 -06:00
simple.test
skip_counter.result
skip_counter.test
status_vars.result
status_vars.test
syntax.result MDEV-33856: Alternative Replication Lag Representation via Received/Executed Master Binlog Event Timestamps 2024-07-25 08:57:27 -06:00
syntax.test