[MDEV-31602] Race on rpl_global_gtid_slave_state when starting IO thread Created: 2023-07-02  Updated: 2023-08-22  Resolved: 2023-07-04

Status: Closed
Project: MariaDB Server
Component/s: Replication
Affects Version/s: 10.4
Fix Version/s: 10.4.31, 10.5.22, 10.6.15, 10.9.8, 10.10.6, 10.11.5, 11.0.3, 11.1.2, 11.2.1

Type: Bug Priority: Major
Reporter: Kristian Nielsen Assignee: Kristian Nielsen
Resolution: Fixed Votes: 0
Labels: None


 Description   

rpl_slave_state::load() is missing locking when calling rpl_slave_state::update().
This can cause crashes when called from the IO thread in get_master_version_and_clock() simultaneously with other updates to the GTID position, and potentially other problems.



 Comments   
Comment by Michael Widenius [ 2023-07-04 ]

ok to push!
Please push into the oldest relevant version (not before 10.4).

Comment by Kristian Nielsen [ 2023-07-04 ]

Pushed to 10.4.

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