mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-20220: Merge 5.7 P_S replication table 'replication_applier_status_by_worker
Step1: ===== Backport 'replication_applier_status_by_worker' from upstream. Iterate through rpl_parallel_thread_pool and display slave worker thread specific information as part of 'replication_applier_status_by_worker' table. --------------------------------------------------------------------------- |Column Name: | Description: | |-------------------------------------------------------------------------| | | | |CHANNEL_NAME | Name of replication channel through which the | | | transaction is received. | | | | |THREAD_ID | Thread_Id as displayed in 'performance_schema. | | | threads' table for thread with name | | | 'thread/sql/rpl_parallel_thread' | | | | | | THREAD_ID will be NULL when worker threads are | | | stopped due to an error/force stop | | | | |SERVICE_STATE | Thread is running or not | | | | |LAST_SEEN_TRANSACTION | Last GTID executed by worker | | | | |LAST_ERROR_NUMBER | Last Error that occured on a particular worker | | | | |LAST_ERROR_MESSAGE | Last error specific message | | | | |LAST_ERROR_TIMESTAMP | Time stamp of last error | | | | --------------------------------------------------------------------------- CHANNEL_NAME will be empty when the worker has not processed any transaction. Channel_name points to valid source channel_name when it is processing a transaction/event group.
This commit is contained in:
@ -12,78 +12,81 @@ Warning 1287 '<select expression> INTO <destination>;' is deprecated and will be
|
||||
# For each table in the performance schema, attempt HANDLER...OPEN,
|
||||
# which should fail with an error 1031, ER_ILLEGAL_HA.
|
||||
#
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=80;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=81;
|
||||
HANDLER performance_schema.user_variables_by_thread OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`user_variables_by_thread` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=79;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=80;
|
||||
HANDLER performance_schema.users OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`users` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=78;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=79;
|
||||
HANDLER performance_schema.threads OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`threads` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=77;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=78;
|
||||
HANDLER performance_schema.table_lock_waits_summary_by_table OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`table_lock_waits_summary_by_table` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=76;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=77;
|
||||
HANDLER performance_schema.table_io_waits_summary_by_table OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`table_io_waits_summary_by_table` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=75;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=76;
|
||||
HANDLER performance_schema.table_io_waits_summary_by_index_usage OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`table_io_waits_summary_by_index_usage` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=74;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=75;
|
||||
HANDLER performance_schema.table_handles OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`table_handles` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=73;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=74;
|
||||
HANDLER performance_schema.status_by_user OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`status_by_user` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=72;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=73;
|
||||
HANDLER performance_schema.status_by_thread OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`status_by_thread` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=71;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=72;
|
||||
HANDLER performance_schema.status_by_host OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`status_by_host` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=70;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=71;
|
||||
HANDLER performance_schema.status_by_account OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`status_by_account` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=69;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=70;
|
||||
HANDLER performance_schema.socket_summary_by_instance OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`socket_summary_by_instance` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=68;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=69;
|
||||
HANDLER performance_schema.socket_summary_by_event_name OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`socket_summary_by_event_name` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=67;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=68;
|
||||
HANDLER performance_schema.socket_instances OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`socket_instances` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=66;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=67;
|
||||
HANDLER performance_schema.setup_timers OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`setup_timers` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=65;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=66;
|
||||
HANDLER performance_schema.setup_objects OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`setup_objects` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=64;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=65;
|
||||
HANDLER performance_schema.setup_instruments OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`setup_instruments` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=63;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=64;
|
||||
HANDLER performance_schema.setup_consumers OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`setup_consumers` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=62;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=63;
|
||||
HANDLER performance_schema.setup_actors OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`setup_actors` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=61;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=62;
|
||||
HANDLER performance_schema.session_status OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`session_status` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=60;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=61;
|
||||
HANDLER performance_schema.session_connect_attrs OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`session_connect_attrs` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=59;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=60;
|
||||
HANDLER performance_schema.session_account_connect_attrs OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`session_account_connect_attrs` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=58;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=59;
|
||||
HANDLER performance_schema.rwlock_instances OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`rwlock_instances` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=57;
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=58;
|
||||
HANDLER performance_schema.replication_connection_configuration OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`replication_connection_configuration` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=57;
|
||||
HANDLER performance_schema.replication_applier_status_by_worker OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`replication_applier_status_by_worker` doesn't have this option
|
||||
SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=56;
|
||||
HANDLER performance_schema.replication_applier_status_by_coordinator OPEN;
|
||||
ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`replication_applier_status_by_coordinator` doesn't have this option
|
||||
|
Reference in New Issue
Block a user