[MDEV-24530] binlog-optimize-thread-scheduling=0 case of binlog rotate via FLUSH LOGS may obsolate binlog file too eary Created: 2021-01-05  Updated: 2021-04-21

Status: Open
Project: MariaDB Server
Component/s: Replication
Affects Version/s: 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.5

Type: Bug Priority: Major
Reporter: Andrei Elkin Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: binlog_checkpoint

Issue Links:
Relates
relates to MDEV-24526 binlog rotate via FLUSH LOGS may obso... Closed

 Description   

A race described in MDEV-24526 is not fixed over there for a case of the server started
with a non-default --binlog-optimize-thread-scheduling=0.
Specifically a group of committing transaction threads need to lock a sequence
of mutexes LOCK_log, LOCK_after_binlog_sync, LOCK_commit_ordered in a crabbing manner, that is with releasing the preceding mutex upon acquisition of the current one.
MYSQL_BIN_LOG::trx_group_commit_leader() shows the pattern for the default
--binlog-optimize-thread-scheduling=1.


Generated at Thu Feb 08 09:30:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.