require_partitioning in test/inc/ib_part.sh does not work with 5.6

Reported by Alexey Kopytov on 2013-04-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Medium
Alexey Kopytov
2.0
Medium
Alexey Kopytov
2.1
Medium
Alexey Kopytov

Bug Description

All partitioning tests are skipped when running against a 5.6 server, because require_partitioning fails. It uses the have_partitioning variable, which is obsolete in 5.6.

Using SHOW ENGINES as suggested in the manual does not work though (http://bugs.mysql.com/bug.php?id=68996). We could be using I_S.PLUGINS as a workaround, but that table is unavailable in 5.0 (and 5.0 is the only reason why that check exists). I think we should probably just replace the code in require_partitioning with a simple version check.

description: updated
Jaime Crespo (jynus) wrote :

What about:
$MYSQL $MYSQL_ARGS -BAN -e "SHOW PLUGINS" 2> /dev/null | grep -q -r "^partition\b"
?

Alexey Kopytov (akopytov) wrote :

Yes, SHOW PLUGINS / I_S.PLUGINS would work too, simply because the statement would fail on 5.0. It is better than a version check, because it would also fail on 5.1+ servers built without partitioning.

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

Other bug subscribers