innobackupex has to fail with error if --defaults-file isn't first argument
Bug #1543029 reported by
Sergei Glushchenko
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 |
To post a comment you must log in.
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} \ $topdir/ data \ file=$MYSQLD_ VARDIR/ my.cnf \
--datadir=
--defaults-
$topdir/backup
run_cmd_ expect_ failure ${XB_BIN} \ $topdir/ data \ file=$MYSQLD_ VARDIR/ my.cnf \ dir=$topdir/ backup
--datadir=
--defaults-
--backup \
--target-
run_cmd_ expect_ failure ${IB_BIN} \ $topdir/ data \ extra-file= $MYSQLD_ VARDIR/ my.cnf \
--datadir=
--defaults-
$topdir/backup
run_cmd_ expect_ failure ${XB_BIN} \ $topdir/ data \ extra-file= $MYSQLD_ VARDIR/ my.cnf \ dir=$topdir/ backup
--datadir=
--defaults-
--backup \
--target-
if [ `grep -c 'must be specified first' $OUTFILE` != '4' ] ; then
die 'Error message mush be repeated 4 times'
fi