[MDEV-8843] Ship TokuBackup as part of MariaDB Created: 2015-09-25  Updated: 2019-12-27  Resolved: 2019-07-16

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - TokuDB
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Heinz Wiesinger Assignee: Sergei Golubchik
Resolution: Won't Fix Votes: 13
Labels: None

Issue Links:
Blocks
blocks MDEV-12920 Header changes in MariaDB 10.1.23 ? Confirmed
Relates
relates to MDEV-19780 Remove the TokuDB storage engine Closed
relates to MDEV-8925 Extending protocol to support binary ... Open

 Description   

Peronca TokuBackup is currently a bit tricky to get installed, since percona neither has source tarballs nor binary downloads up on their site. The documentation (https://www.percona.com/doc/percona-server/5.6/tokudb/toku_backup.html) mentions that it's shipped as part of Percona Server, but obviously doesn't help much when you're running MariaDB.

Would be nice if there would be some better availability for MariaDB



 Comments   
Comment by Rich Prohaska [ 2015-10-03 ]

The source to the tokudb backup plugin is in two repos:
github.com:percona/percona-tokubackup
github.com:percona/tokudb-backup-plugin

These two repo's need to be checked out and built with the mariadb server source. Here is an example on how to build the tokudb backup plugin into mariadb 10.1:

set -e 
if [ ! -d mariadb-server ] ; then git clone git@github.com:mariadb/server mariadb-server; fi
if [ ! -d percona-tokubackup ] ; then git clone git@github.com:percona/percona-tokubackup; fi
if [ ! -d tokudb-backup-plugin ] ; then git clone git@github.com:percona/tokudb-backup-plugin; fi
pushd tokudb-backup-plugin
rm -rf backup
ln -s ../percona-tokubackup/backup
popd
pushd mariadb-server/plugin
if [ -d tokudb-backup-plugin ] ; then rm tokudb-backup-plugin; fi
rm -rf tokudb-backup-plugin
ln -s ../../tokudb-backup-plugin
popd
rm -rf build install
mkdir build install
pushd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../install -DMYSQL_MAINTAINER_MODE=OFF ../mariadb-server
make -j8 install
popd

Need to preload the hot backup library:

LD_PRELOAD=$PWD/lib/libHotBackup.so bin/mysqld_safe --defaults-file=~/rfp.cnf --plugin-load-add=ha_tokudb.so --plugin-load-add=tokudb_backup.so &

Here is the user interface:

MariaDB [(none)]> show variables like 'version';
+---------------+----------------------+
| Variable_name | Value                |
+---------------+----------------------+
| version       | 10.1.8-MariaDB-debug |
+---------------+----------------------+
1 row in set (0.00 sec)
 
MariaDB [(none)]> show variables like 'tokudb_backup%';
+---------------------------------+-----------------------------------+
| Variable_name                   | Value                             |
+---------------------------------+-----------------------------------+
| tokudb_backup_allowed_prefix    |                                   |
| tokudb_backup_dir               |                                   |
| tokudb_backup_exclude           |                                   |
| tokudb_backup_last_error        | 0                                 |
| tokudb_backup_last_error_string |                                   |
| tokudb_backup_plugin_version    |                                   |
| tokudb_backup_throttle          | 18446744073709551615              |
| tokudb_backup_version           | tokubackup 1.2 $Revision: 56100 $ |
+---------------------------------+-----------------------------------+

Comment by Colin Charles [ 2015-10-09 ]

Now that TokuBackup is also completely OSS and integrated into Percona Server we should have this in the next release: https://www.percona.com/doc/percona-server/5.6/tokudb/toku_backup.html

Comment by guo feng [ 2015-11-17 ]

Hope tokubackup comes to MariaDB soon~

Comment by bohutang [ 2016-06-26 ]

Hello,

I have hack a patch for Percona Xtrabackup.
With it, now we can backup both InnoDB and TokuDB on PS5.6/PS5.7 and MariaDB.
Patch is:
https://github.com/BohuTANG/percona-xtrabackup/commit/b43ba1b25deff2ba21eb9030b49413e1851f263b

Comment by Federico Razzoli [ 2019-12-26 ]

Could anyone explain why this has been closed as "Won't fix"?

The bug is "major" and comments suggested there was some activity around it.

Comment by Geoff Montee (Inactive) [ 2019-12-27 ]

f_razzoli,

Percona is the primary developer of TokuDB, and it looks like Percona has deprecated TokuDB starting with Percona Server 8.0:

https://www.percona.com/doc/percona-server/8.0/tokudb/tokudb_intro.html

As a consequence, TokuDB might also end up getting deprecated and/or removed from MariaDB. See MDEV-19780 about that.

Percona's replacement for TokuDB appears to be MyRocks. That is also available in MariaDB:

https://mariadb.com/kb/en/myrocks/

Generated at Thu Feb 08 07:30:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.