require_partitioning in test/inc/ does not work with 5.6

Bug #1170340 reported by Alexey Kopytov on 2013-04-18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Alexey Kopytov
Alexey Kopytov
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 ( 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.

Related branches

Laurynas Biveinis: Approve on 2013-04-26
Laurynas Biveinis: Approve on 2013-04-26
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