MySQL appears large flush TABLES with READ LOCK

Source: Internet
Author: User


Solutions

Failure summary

The global read lock in the system was acquired by another thread (with an S lock), so DML will appear waiting for global read lock on the GRL with IX lock, and the set READ_ONLY is the S lock on GRL, So at this point it is possible to grant, and at this time there is a large query in the system, set global Read_only=1 needs to wait for the table to be closed, so the status is: Waiting for table flush

So the reason can be determined: there is a flush tables with read lock in the system but no unlock tables

Little Tricks

Before manually doing flush TABLES with read Lock/set global Read_only=1, perform a flush TABLES to greatly reduce the system's time to read-only


Reference

http://www.gpfeng.com/?p=222


MySQL appears large flush TABLES with READ LOCK

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.