-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix config, add test for mysql with ranges
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
docker/mysql_tests/scripts/base_tests/full_xtrabackup_test_with_ranges.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
set -e -x | ||
|
||
. /usr/local/export_common.sh | ||
|
||
export WALE_S3_PREFIX=s3://mysqlfullxtrabackupbucket | ||
|
||
|
||
mysqld --initialize --init-file=/etc/mysql/init.sql | ||
|
||
service mysql start | ||
|
||
sysbench --table-size=10 prepare | ||
|
||
sysbench --time=5 run | ||
|
||
mysql -e 'FLUSH LOGS' | ||
|
||
mysqldump sbtest > /tmp/dump_before_backup | ||
|
||
wal-g backup-push | ||
|
||
mysql_kill_and_clean_data | ||
|
||
export S3_RANGE_BATCH_ENABLED=true | ||
wal-g backup-fetch LATEST | ||
|
||
chown -R mysql:mysql $MYSQLDATA | ||
|
||
service mysql start || (cat /var/log/mysql/error.log && false) | ||
|
||
mysql_set_gtid_purged | ||
|
||
mysqldump sbtest > /tmp/dump_after_restore | ||
|
||
diff /tmp/dump_before_backup /tmp/dump_after_restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters