ps_tokudb_admin should prevent activating TokuBackup if there is no TokuDB engine on server

Bug #1520099 reported by Shahriyar Rzayev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Fix Released
High
Tomislav Plavcic
5.6
Fix Released
High
Tomislav Plavcic

Bug Description

As mentioned in Documentation:
"Percona TokuBackup is an open-source hot backup utility for MySQL servers running the TokuDB storage engine"

https://www.percona.com/doc/percona-server/5.6/tokudb/toku_backup.html

If there is no TokuDB engine in server TokuBackup should not exist as well.
But with ps_tokudb_admin we can install TokuBackup even if there is no TokuDB:

mysql> select plugin_name, plugin_status from information_schema.plugins where plugin_name like '%toku%';
Empty set (0.00 sec)

sh@percona-XPS-15:~$ sudo ps_tokudb_admin --enable-backup -uroot -p12345

mysql> select plugin_name, plugin_status from information_schema.plugins where plugin_name like '%toku%';
+---------------+---------------+
| plugin_name | plugin_status |
+---------------+---------------+
| tokudb_backup | ACTIVE |
+---------------+---------------+
1 row in set (0.00 sec)

Resulting in inconsistent situation -> if try to take a backup:

mysql> set tokudb_backup_dir='/home/tokubackupdir';
ERROR 1193 (HY000): Unknown system variable 'tokudb_data_dir'

Tags: pkg tokudb
Revision history for this message
Roel Van de Paar (roel11) wrote :

Updated triage. To avoid confusion from users, and based on discussions re: TB/XB this is a rather important fix to get in.

Revision history for this message
Tomislav Plavcic (tplavcic) wrote :

Ok. Here's another one - what if you have both installed and then try to uninstall just TokuDB and leave TokuBackup installed?
I guess it should be handled the same so if you try something like that you should get an error.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

+Agree:
1. Installing TokuBackup should be prevented if there is no TokuDB engine (this report)
2. Say TokuDB engine and TokuBackup installed, then if somebody removes TokuDB, TokuBackup should be removed as well or invalidated in some way. (will report new)

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :
Revision history for this message
Roel Van de Paar (roel11) wrote :

Great. Looking forward to a fix on both of them. If we make many of these little tweaks, TB will overall become a much more user friendly product.

Revision history for this message
Tomislav Plavcic (tplavcic) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-946

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.