Tag

global read lock

1 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 13, 2021 · Databases

Analyzing and Resolving MySQL Global Read‑Lock Deadlocks in Parallel Replication

The article investigates a MySQL 8.0.18 replication deadlock caused by numerous set global read_only commands, explains the lock‑waiting chain involving global read and commit locks, reproduces two deadlock scenarios, and proposes practical solutions such as killing offending sessions or disabling slave_preserve_commit_order.

Performance SchemaReplicationdatabase
0 likes · 14 min read
Analyzing and Resolving MySQL Global Read‑Lock Deadlocks in Parallel Replication
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 9, 2019 · Databases

How to Quickly Identify and Kill Sessions Holding Global Read Locks in MySQL

This article explains several practical techniques—including using the performance_schema.metadata_locks view, events_statements_history, a gdb script, and filtered SHOW PROCESSLIST queries—to locate and terminate the MySQL session that holds a global read lock, thereby restoring normal write operations.

MySQLdatabaseglobal read lock
0 likes · 8 min read
How to Quickly Identify and Kill Sessions Holding Global Read Locks in MySQL