My Oracle Support Banner

Replica parallel workers stuck on "Waiting For Table Metadata Lock" when having MTS enabled (Doc ID 2623029.1)

Last updated on OCTOBER 25, 2022

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.


Disclaimer: Starting from v8.0, some terms have been deprecated. Older releases will only use the deprecated terminology, and new releases will only use new terminology. Please see for a complete list of those changes, and in which minor versions it happened.

On Source-Replica replication environment using MTS (slave_parallel_workers > 0), there is a deadlock between replica threads, when it has a replicated transaction that needs to acquire a metadata lock (MDL) like "OPTIMIZE TABLE"


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.