[MDEV-31894] Optimize Check for Parallel Replication Worker Thread Idleness Created: 2023-08-10  Updated: 2023-12-11  Resolved: 2023-12-11

Status: Closed
Project: MariaDB Server
Component/s: Replication
Fix Version/s: 10.4.33

Type: Task Priority: Major
Reporter: Brandon Nesterenko Assignee: Brandon Nesterenko
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates MDEV-10653 SHOW SLAVE STATUS Can Deadlock an Err... Closed

 Description   

Checking if the replication parallel workers are idle (rpl_parallel::workers_idle()) currently iterates through each parallel entry data structure, and locking each to view its last committed sub_id. This can be improved by using the pattern adopted in MDEV-30619 and comparing (rli->last_inuse_relaylog->queued_count == rli->last_inuse_relaylog->dequeued_count).

This is a potential candidate for back-porting as well.



 Comments   
Comment by Brandon Nesterenko [ 2023-12-11 ]

Fixed as a part of MDEV-10653 in 10.4 as 8dad51481b1

Generated at Thu Feb 08 10:27:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.