Comment 6 for bug 665210

Revision history for this message
Andrew Garner (muzazzi) wrote :

I see the build error against the innodb plugin with the original branch as it stands. This branch is quite old (originally submitted over 3 months ago) and this was simply a bug in xtrabackup's patch for the innodb plugin at the time. This branch only modifies the tar4ibd patch in order to support compressed tables so doesn't touch the patch against the plugin whatsoever.

If I do a simple merge with trunk this will work:

$ bzr merge ../percona-xtrabackup/
$ wget 'http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.53.tar.gz'
$ ./utils/build.sh plugin
...
$ echo $?
0

And the built tar4ibd reads a compressed table:
$ mysql -Bse "SHOW CREATE TABLE test.ztest\G"
*************************** 1. row ***************************
       Table: ztest
Create Table: CREATE TABLE `ztest` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `data` char(32) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4652971 DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED

$ sudo ./mysql-5.1.53/libtar-1.2.11/libtar/tar4ibd -c /var/lib/mysql/test/ztest.ibd | wc -c
163579392

But the 1.5 tar4ibd does not:
$ rpm -qf /usr/bin/tar4ibd
xtrabackup-1.5-9.rhel5.x86_64
$ sudo /usr/bin/tar4ibd -c /var/lib/mysql/test/ztest.ibd | wc -c
The file '/var/lib/mysql/test/ztest.ibd' may not be InnoDB datafile or may be corrupted.
tar_append_tree("/var/lib/mysql/test/ztest.ibd", "/var/lib/mysql/test/ztest.ibd"): Input/output error
512

I pushed my merged branch up. I don't think this report is invalid at this point but simply testing was done against a pretty old branch of xtrabackup.