(14:52 mysql-test) > ls */*/huge_lsn.test
|
suite/mariabackup/huge_lsn.test
|
(14:56 mysql-test) > cat */*/huge_lsn.test
|
--source include/not_embedded.inc
|
|
--echo #
|
--echo # MDEV-13416 mariabackup fails with EFAULT "Bad Address"
|
--echo #
|
|
let INNODB_PAGE_SIZE=`select @@innodb_page_size`;
|
let MYSQLD_DATADIR=`select @@datadir`;
|
|
--source include/shutdown_mysqld.inc
|
perl;
|
my $file= "$ENV{MYSQLD_DATADIR}/ibdata1";
|
open(FILE, "+<", $file) or die "Unable to open $file\n";
|
binmode FILE;
|
my $ps= $ENV{INNODB_PAGE_SIZE};
|
my $page;
|
die "Unable to read $file" unless sysread(FILE, $page, $ps) == $ps;
|
substr($page,26,8) = pack("NN", 4096, 0);
|
substr($page,0,4)=pack("N",0xdeadbeef);
|
substr($page,$ps-8,4)=pack("N",0xdeadbeef);
|
sysseek(FILE, 0, 0) || die "Unable to rewind $file\n";
|
syswrite(FILE, $page, $ps)==$ps || die "Unable to write $file\n";
|
close(FILE) || die "Unable to close $file\n";
|
EOF
|
|
--remove_files_wildcard $MYSQLD_DATADIR ib_logfile*
|
|
--source include/start_mysqld.inc
|
let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err;
|
--let SEARCH_PATTERN= InnoDB: 5\.7\.\d+ started; log sequence number 17592186044428
|
--source include/search_pattern_in_file.inc
|
|
|
CREATE TABLE t(i INT) ENGINE INNODB;
|
INSERT INTO t VALUES(1);
|
echo # xtrabackup backup;
|
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
|
|
--disable_result_log
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir;
|
--enable_result_log
|
|
INSERT INTO t VALUES(2);
|
|
|
echo # xtrabackup prepare;
|
--disable_result_log
|
exec $XTRABACKUP --prepare --target-dir=$targetdir;
|
-- source include/restart_and_restore.inc
|
--enable_result_log
|
|
SELECT * FROM t;
|
DROP TABLE t;
|
rmdir $targetdir;
|
|
(14:56 mysql-test) > ./mtr huge_lsn
|
Logging: ./mtr huge_lsn
|
vardir: /home/a/spd/_depot/m-tar/10.2.7/mysql-test/var
|
Checking leftover processes...
|
Removing old var directory...
|
Creating var directory '/home/a/spd/_depot/m-tar/10.2.7/mysql-test/var'...
|
Checking supported features...
|
MariaDB Version 10.2.7-MariaDB
|
- SSL connections supported
|
Collecting tests...
|
Installing system database...
|
|
==============================================================================
|
|
TEST RESULT TIME (ms) or COMMENT
|
--------------------------------------------------------------------------
|
|
worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019
|
#
|
# MDEV-13416 mariabackup fails with EFAULT "Bad Address"
|
#
|
FOUND 1 /InnoDB: 5\.7\.\d+ started; log sequence number 17592186044428/ in mysqld.1.err
|
CREATE TABLE t(i INT) ENGINE INNODB;
|
INSERT INTO t VALUES(1);
|
# xtrabackup backup
|
mariabackup.huge_lsn [ fail ]
|
Test ended at 2017-08-11 14:56:43
|
|
CURRENT_TEST: mariabackup.huge_lsn
|
mysqltest: At line 40: exec of '/home/a/spd/_depot/m-tar/10.2.7/bin/mariabackup --defaults-file=/home/a/spd/_depot/m-tar/10.2.7/mysql-test/var/my.cnf --backup --target-dir=/home/a/spd/_depot/m-tar/10.2.7/mysql-test/var/tmp/backup 2>&1' failed, error: 256, status: 1, errno: 11
|
Output from before failure:
|
170811 14:56:43 Connecting to MySQL server host: localhost, user: root, password: set, port: 16000, socket: /home/a/spd/_depot/m-tar/10.2.7/mysql-test/var/tmp/mysqld.1.sock
|
Using server version 10.2.7-MariaDB-log
|
/home/a/spd/_depot/m-tar/10.2.7/bin/mariabackup based on MariaDB server 10.2.7-MariaDB Linux (x86_64)
|
xtrabackup: uses posix_fadvise().
|
xtrabackup: cd to /home/a/spd/_depot/m-tar/10.2.7/mysql-test/var/mysqld.1/data/
|
xtrabackup: open files limit requested 1024, set to 1024
|
xtrabackup: using the following InnoDB configuration:
|
xtrabackup: innodb_data_home_dir = .
|
xtrabackup: innodb_data_file_path = ibdata1:12M:autoextend
|
xtrabackup: innodb_log_group_home_dir = ./
|
2017-08-11 14:56:43 140457059727168 [Note] InnoDB: Number of pools: 1
|
/home/a/spd/_depot/m-tar/10.2.7/bin/mariabackup: Error writing file '/home/a/spd/_depot/m-tar/10.2.7/mysql-test/var/tmp/backup/ib_logfile0' (Errcode: 14 "Bad address")
|
xtrabackup: Error: write to logfile failed
|
xtrabackup: Error: xtrabackup_copy_logfile() failed.
|
|
- saving '/home/a/spd/_depot/m-tar/10.2.7/mysql-test/var/log/mariabackup.huge_lsn/' to '/home/a/spd/_depot/m-tar/10.2.7/mysql-test/var/log/mariabackup.huge_lsn/'
|
--------------------------------------------------------------------------
|
The servers were restarted 0 times
|
Spent 0.000 of 8 seconds executing testcases
|
|
Failure: Failed 1/1 tests, 0.00% were successful.
|
|
Failing test(s): mariabackup.huge_lsn
|
|
The log files in var/log may give you some hint of what went wrong.
|
|
If you want to report this error, please read first the documentation
|
at http://dev.mysql.com/doc/mysql/en/mysql-test-suite.html
|
|
mysql-test-run: *** ERROR: there were failing test cases
|