The deployment looked quiet: an application request finished, its database connection returned to the pool, and a migration started. MariaDB then showed Waiting for table metadata lock while the ALTER TABLE made no visible progress. The missing fact is often outside the waiting statement. A transaction that ...