mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-20220: Merge 5.7 P_S replication table 'replication_applier_status_by_worker
Step 3: ====== Preserve worker pool information on either STOP SLAVE/Error. In case STOP SLAVE is executed worker threads will be gone, hence worker threads will be unavailable. Querying the table at this stage will give empty rows. To address this case when worker threads are about to stop, due to an error or forced stop, create a backup pool and preserve the data which is relevant to populate performance schema table. Clear the backup pool upon slave start.
This commit is contained in:
@@ -149,6 +149,12 @@ let $new_retry= query_get_value(SHOW STATUS LIKE 'Slave_retried_transactions', V
|
||||
--disable_query_log
|
||||
eval SELECT $new_retry - $old_retry AS retries;
|
||||
--enable_query_log
|
||||
let $ps_value= query_get_value(select last_trans_retry_count from
|
||||
performance_schema.replication_applier_status_by_worker where
|
||||
last_trans_retry_count > 0, last_trans_retry_count, 1);
|
||||
let $assert_text= Performance Schema retries should match with actual retries;
|
||||
let $assert_cond= "$ps_value" = $new_retry - $old_retry;
|
||||
source include/assert.inc;
|
||||
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
STOP SLAVE IO_THREAD;
|
||||
|
Reference in New Issue
Block a user