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

Bug #1170340 reported by Alexey Kopytov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Medium
Alexey Kopytov
2.0
Fix Released
Medium
Alexey Kopytov
2.1
Fix Released
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.

Related branches

description: updated
Revision history for this message
Jaime Crespo (jynus) wrote :

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

Revision history for this message
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.

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/PXB-626

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.