[MDEV-6220] mysqldump will not backup database with --flush-logs parameter and log_error my.cnf parameter defined Created: 2014-05-07 Updated: 2015-01-19 Resolved: 2015-01-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 5.5.37, 10.0.10 |
| Fix Version/s: | 5.5.42, 10.0.16 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Vasilis Lourdas | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | upstream-fixed | ||
| Environment: |
Linux 32-bit, Debian Wheezy 7.5, MariaDB installed from MariaDB repository |
||
| Description |
|
If you enabled log_error in my.cnf, eg.
and specify mysqldump to backup with the --flush-logs parameter, then mysqldump will not dump anything.
As a sidenote, is --flush-logs needed in such a case? |
| Comments |
| Comment by Elena Stepanova [ 2014-05-08 ] |
|
Thanks for the report. As a workaround, please try to disable 'syslog' in mysqld_safe config file. |
| Comment by Vasilis Lourdas [ 2014-05-08 ] |
|
Thank you Elena. Do you consider --flush-logs necessary for backing up a master server? |
| Comment by Elena Stepanova [ 2014-05-08 ] |
|
Hi Vasilis, I don't have a well-argumented opinion on the subject; but here is the vision of my colleague knielsen who is a replication expert:
So, as you can see, there is some doubt it's necessary. |
| Comment by Vasilis Lourdas [ 2014-05-08 ] |
|
Thank you Elena for your comment. I don't remember reading somewhere that --flush-logs is necessary for a master server, but after going through mysqldump's man page, I figured this would be good to have enabled. I disabled log_error for the master server and reenabled --flush-logs in my backup script. This is an acceptable workaround for me, but I thought about reporting the error anyway. Kristian's comments are useful too. Thank you for the great work! |
| Comment by Elena Stepanova [ 2014-05-08 ] |
|
We will need to re-report it to MySQL in order to inform them, we always do so for upstream bugs. For a note, the problem is not with mysqldump itself of course, it is with executing FLUSH TABLES on the server side, which mysqldump calls when the option is enabled. |
| Comment by Vasilis Lourdas [ 2014-05-08 ] |
|
I don't feel like reporting the bug to Oracle's issue tracker, they've always been slow at responding or providing any feedback regarding issues. If you feel like reporting the bug, feel free to do so. However, from your reply I understand that you already found out the cause of this issue. Why don't you patch the source code in the MariaDB tree and have this issue fixed in the next release? |
| Comment by Elena Stepanova [ 2014-05-08 ] |
|
Maybe we will, but we should report it to them anyway, for the sake of collaboration. I'll do that. |
| Comment by Elena Stepanova [ 2014-05-10 ] |
|
I could reproduce it on MySQL 5.1 and 5.5 from the official repo (filed as http://bugs.mysql.com/bug.php?id=72598), but not on MySQL 5.6 from dotdeb repo. If it's not just the packaging difference, but the problem was actually fixed in 5.6, there's no chance it will be fixed in earlier versions, so we'll need to do it on our own anyway. |
| Comment by Elena Stepanova [ 2014-05-10 ] |
|
| Comment by Vasilis Lourdas [ 2015-01-03 ] |
|
Is there some progress regarding this issue? I'm using 5.5.41 from MariaDB's official Debian repository and the issue still exists. |