innobackupex has to fail with error if --defaults-file isn't first argument

Bug #1543029 reported by Sergei Glushchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.3
Incomplete
High
Sergei Glushchenko
2.4
Incomplete
High
Sergei Glushchenko

Bug Description

xtrabackup does fail with error, innobackupex has to fail too.

summary: - innobackupex has to fail with error is --defaults-file isn't first
+ innobackupex has to fail with error if --defaults-file isn't first
argument
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Looking at the fix for bug 1511451, I see that both xtrabackup and innobackupex fail with error if --defaults-file isn't first argument on the command line.

Here is the test case for reference

run_cmd_expect_failure ${IB_BIN} \
 --datadir=$topdir/data \
 --defaults-file=$MYSQLD_VARDIR/my.cnf \
 $topdir/backup

run_cmd_expect_failure ${XB_BIN} \
 --datadir=$topdir/data \
 --defaults-file=$MYSQLD_VARDIR/my.cnf \
 --backup \
 --target-dir=$topdir/backup

run_cmd_expect_failure ${IB_BIN} \
 --datadir=$topdir/data \
 --defaults-extra-file=$MYSQLD_VARDIR/my.cnf \
 $topdir/backup

run_cmd_expect_failure ${XB_BIN} \
 --datadir=$topdir/data \
 --defaults-extra-file=$MYSQLD_VARDIR/my.cnf \
 --backup \
 --target-dir=$topdir/backup

if [ `grep -c 'must be specified first' $OUTFILE` != '4' ] ; then
 die 'Error message mush be repeated 4 times'
fi

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-460

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.