forked from docs/doc-exports
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
3.1 KiB
3.1 KiB
Metadata Locks
Overview
- Metadata locks (MDLs) are used to ensure consistency between DDL and DML operations. Usually, DDL operations require MDL write locks. Once a DML lock occurs, it can have a significant impact on the database because all subsequent operations (SELECT, DML, and DDL operations) on the table will be blocked, causing a backlog of connections.
- The system displays the database MDL locks in real time. With these locks, you can quickly locate MDL problems and terminate the sessions holding MDL locks, so that blocked operations can be restored.
Procedure
- Log in to the DAS console using your username and password.
- On the Overview page, click Go to Intelligent O&M.
- Locate your desired instance and click Details to go to the Intelligent O&M overview page.
- Choose Locks and Transactions > Metadata Locks.
- Select a lock status and type, and enter a database name, table name, and session ID as needed. Then, click Query to query required sessions.
- In the query result, check whether there are sessions that hold MDL locks. If so, select the sessions as required and click Kill Session.
Parent topic: Locks and Transactions