Bug #68639 | FLUSH TABLES .... FOR EXPORT takes ages (making it useless?) on a busy server | ||
---|---|---|---|
Submitted: | 11 Mar 2013 17:40 | Modified: | 29 Jun 2013 12:57 |
Reporter: | Simon Mudd (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S3 (Non-critical) |
Version: | 5.6.10 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[11 Mar 2013 17:40]
Simon Mudd
[11 Mar 2013 17:53]
MySQL Verification Team
verified with a simple test to read small table t1 in a tight loop, while trying to flush another small table for export, t2.
[27 Jun 2013 18:14]
Simon Mudd
Please close since this is fixed (and reported to me by Oracle). http://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-12.html "InnoDB: FLUSH TABLES FOR EXPORT would sleep too often while flushing pages from buffer pools. (Bug #16471701)"
[5 Sep 2013 17:24]
Charles Peterson
Seems to be an issue again on 5.6.13. 2629 seconds+++ System lock FLUSH TABLES tmp.tmp FOR EXPORT
[26 Sep 2013 12:50]
Russ Huguley
I am seeing the same thing on 5.6.13. It seemed to hang for at least 5 hours on a FLUSH TABLES .... FOR EXPORT. The table size was around 5GB. There was nothing else accessing the table while this was going on and the only activity happening on the system was replication. Very little disk activity was going on as well: sdb is the mysql data partition: Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util sda 0.00 0.30 0.00 0.20 0.00 2.00 20.00 0.00 3.50 2.50 0.05 sdb 0.13 32.93 12.00 13.77 191.20 186.80 29.34 0.17 6.45 1.83 4.72
[26 Sep 2013 21:44]
Russ Huguley
Just in case anyone runs across this looking for an answer as to why it still locks up. If you have replication running do a stop slave; the flush tables completes in about a minute and a half. If you have other io going to it I am guessing it will still take forever.
[7 Jul 2014 23:20]
jason` smitt
If anyone ran into this, and you are curious as to what impact it will have on your server I found that a 200 gig table on a busy server took roughly 24 hours to complete. it tied up one of the cores, but generated little or no i/o so I felt it was safe to leave it running to completion.
[22 May 2015 16:40]
Vincent Meng
This bug has been reported again in #77011.
[22 May 2015 16:43]
Vincent Meng
To resolve the system lock, try to set change buffer size to 0 temporarily. `set global innodb_change_buffer_max_size = 0`. In the same time you can monitor the change buffer size, when it clears the system lock will be gone. `show status like 'Innodb_ibuf_size'`