Mysql deadlock occurs when the disk is full.

Source: Internet
Author: User

Mysql deadlock occurs when the disk is full.

Today, I encountered a problem because the disk of the machine where mysql is located is full, leading to a mysql deadlock and not even querying the select statement. If I did not read the mysql Log, I could not find the cause.

Show processlist shows that the first update statement needs to be written, because the disk is full and cannot be written, resulting in a mysql deadlock.

You can view the mysql Log and find an alarm log: "[Warning] Disk is full writing '. /mysql-bin.000123 '(Errcode: 28 ). waiting for someone to free space... (keep CT up to 60 secs delay for server to continue after freeing disk space )"

The reason is that the disk space is fully occupied.

I killed the mysql process before I started it to release the disk space, I don't know whether the problem can be solved by directly releasing the disk space (it is estimated that mysql will return after one minute ).

When a problem occurs today, try kill-3 to dump the thread information of the process to check whether the program is faulty, and the result is not dump. It is estimated that the disk is full, dump information is not stored in disk space.

In the future, let's see if the disk space is full.

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.