Comment 2 for bug 1470847

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Here is the test case:

#
# Bug 1470847: starting LSN is bigger than ending LSN makes no error
#

MYSQLD_EXTRA_MY_CNF_OPTS="
innodb-log-files-in-group=4
innodb-log-file-size=2M
"
start_server

# setup InnoDB to flush agressively
run_cmd ${MYSQL} ${MYSQL_ARGS} -e "SET GLOBAL innodb_old_blocks_time=250; \
SET GLOBAL innodb_old_blocks_pct=5; \
SET GLOBAL innodb_max_dirty_pages_pct=0;"

load_sakila

# wait for InnoDB to flush
sleep 5

# pass wrong value for innodb-log-files-in-group
run_cmd_expect_failure xtrabackup --backup --target-dir=$topdir/backup \
                                  --innodb-log-files-in-group=3