Tag

Metadata Locks

1 views collected around this technical thread.

Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 23, 2019 · Databases

Analysis of MySQL FTWRL (Flush Table With Read Lock) Blocking Behavior

This article examines how MySQL's FLUSH TABLE WITH READ LOCK command can cause blocking, detailing two cases where global read locks or table cache flushes stall other operations, explaining the underlying MDL lock mechanisms, table cache handling, and providing code examples and debugging insights.

DebuggingFTWRLMetadata Locks
0 likes · 20 min read
Analysis of MySQL FTWRL (Flush Table With Read Lock) Blocking Behavior
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 18, 2019 · Databases

Understanding MySQL Metadata Locks and ALTER Table Delays with Foreign Keys

The article explains how MySQL metadata locks, especially SHARED_UPGRADABLE and SHARED_READ_ONLY locks acquired during ALTER TABLE on tables with foreign keys, can cause long wait times under concurrent write transactions, and shows how adjusting the max_write_lock_count variable resolves the issue.

ALTER TABLEForeign KeysMetadata Locks
0 likes · 7 min read
Understanding MySQL Metadata Locks and ALTER Table Delays with Foreign Keys
Efficient Ops
Efficient Ops
Aug 22, 2018 · Databases

Unlocking MySQL: Deep Dive into Metadata and InnoDB Lock Mechanisms

This article presents a comprehensive walkthrough of MySQL's two‑layer architecture, metadata (MDL) locks, InnoDB lock types—including gap and record locks—and practical debugging techniques, helping readers understand lock acquisition, release points, and source‑code entry points for effective database operation and development.

Database InternalsInnoDBLock Mechanisms
0 likes · 19 min read
Unlocking MySQL: Deep Dive into Metadata and InnoDB Lock Mechanisms