Debian Codegraph @

mysql-test/suite/innodb/t/upgrade_compressed_recv.test

raw
1 --source include/not_valgrind.inc
2 --source include/have_debug.inc
3
4 --echo #
5 --echo # Bug#27014083 - 8.0 CRASH RECOVERY FAILS FOR UPGRADED 5.7 COMPRESSED TABLES WITH SIZE < 96K
6 --echo #
7
8 --echo # Set different paths for --datadir
9 let $MYSQLD_DATADIR1 = $MYSQL_TMP_DIR/data57;
10
11 --copy_file $MYSQLTEST_VARDIR/std_data/data57.zip $MYSQL_TMP_DIR/data57.zip
12
13 --echo # Check that the file exists in the working folder.
14 --file_exists $MYSQL_TMP_DIR/data57.zip
15
16 --echo # Extract 5.7 datadir
17 --exec unzip -qo $MYSQL_TMP_DIR/data57.zip -d $MYSQL_TMP_DIR
18
19 --echo # These files are added to test error scenario, delete from for upgrade testing.
20 --remove_file $MYSQL_TMP_DIR/data57/test/55_temporal.frm
21 --remove_file $MYSQL_TMP_DIR/data57/test/55_temporal.MYD
22 --remove_file $MYSQL_TMP_DIR/data57/test/55_temporal.MYI
23 --echo # Remove myisam partitioned tables. There are used for negative testing.
24 --remove_files_wildcard $MYSQL_TMP_DIR/data57/partitions *
25 --rmdir $MYSQL_TMP_DIR/data57/partitions
26 --force-rmdir $MYSQL_TMP_DIR/data57/mismatch_frms
27
28 let $MYSQLD_LOG= $MYSQLTEST_VARDIR/log/innodb_upgrade_compressed.log;
29
30 --source include/shutdown_mysqld.inc
31
32 --echo # start mysqld on the 5.7 datadir
33 --replace_result $MYSQLD_DATADIR1 MYSQLD_DATADIR1 $MYSQLD_LOG MYSQLD_LOG
34 let $restart_parameters = "restart: --loose-skip-log-bin --skip-log-replica-updates --skip-replica-preserve-commit-order --datadir=$MYSQLD_DATADIR1 --log-error=$MYSQLD_LOG --innodb_page_size=16k";
35 --let $wait_counter= 10000
36 --source include/start_mysqld.inc
37
38 SELECT * FROM test.t_compressed;
39 SHOW CREATE TABLE test.t_compressed;
40
41 --echo # Disable background threads that disturb.
42
43 SET GLOBAL innodb_log_checkpoint_now=ON;
44 SET GLOBAL innodb_page_cleaner_disabled_debug = 1;
45 SET GLOBAL innodb_dict_stats_disabled_debug = 1;
46 SET GLOBAL innodb_master_thread_disabled_debug = 1;
47
48 INSERT INTO test.t_compressed VALUES (1, 'hello'), (2, 'hi');
49 INSERT INTO test.t_compressed VALUES (3, 'satya'), (4, 'bodapati');
50
51 INSERT INTO test.t_blob VALUES ('hello', 'hi', 'satya', 'bodapati');
52 INSERT INTO test.t_blob VALUES ('hi', 'hello', 'satya', 'bodapati');
53
54 --replace_result $MYSQLD_DATADIR1 MYSQLD_DATADIR1 $MYSQLD_LOG MYSQLD_LOG
55 --let $wait_counter= 3000
56 --source include/kill_and_restart_mysqld.inc
57 SELECT * FROM test.t_compressed;
58 SELECT * FROM test.t_blob;
59
60 let $restart_parameters =;
61 --echo # Restart the server with default options.
62 --let $shutdown_server_timeout= 300
63 --let $wait_counter= 3000
64 --source include/restart_mysqld.inc
65 --force-rmdir $MYSQLD_DATADIR1
66 --remove_file $MYSQL_TMP_DIR/data57.zip
67