Workflow of the test
|
1. Create DB server and start it
|
2. One session starts to run some SQL stream (DML and DDL) against this server
|
3. Concurrent to the ongoing 2.
|
extra/mariabackup/mariabackup --host=127.0.0.1 --user=root --password='' --innodb-use-native-aio=0 ... --backup --datadir=<vardir of RQG runner>/1/data --target-dir=<vardir of RQG runner>/1_clone/data
|
gets executed.
|
4. After that and also concurrent to 2. but not touching the server started in 1. some
|
extra/mariabackup/mariabackup --host=127.0.0.1 --user=root --password='' --innodb-use-native-aio=0 --port=26704 --prepare --target-dir=<vardir of RQG runner>/1_clone/data
|
gets executed. And that fails.
|
|
Just one example of some historic replay (messages written by mariabackup ... prepare)
|
2020-03-30 13:30:41 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=4711661
|
2020-03-30 13:30:41 0 [Note] InnoDB: Starting final batch to recover 168 pages from redo log.
|
2020-03-30 13:30:41 0 [ERROR] InnoDB: Not applying DELETE_ROW_FORMAT_REDUNDANT due to corruption on [page id: space=9, page number=70]
|
2020-03-30 13:30:41 0 [ERROR] InnoDB: Set innodb_force_recovery=1 to ignore corruption.
|
2020-03-30 13:30:41 0 [ERROR] InnoDB: Plugin initialization aborted at srv0start.cc[1574] with error Data structure corruption
|
[00] FATAL ERROR: 2020-03-30 13:30:42 mariabackup: innodb_init() returned 39 (Data structure corruption).
|
|
|
|
|
[ERROR] InnoDB: Not applying DELETE_ROW_FORMAT_REDUNDANT due to corruption on [page id: space=9, page number=70]
|
perl rqg.pl \
|
--grammar=conf/mariadb/table_stress_innodb_nocopy.yy \
|
--gendata=conf/mariadb/table_stress.zz \
|
--gendata_sql=conf/mariadb/table_stress.sql \
|
--reporters=Mariabackup \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--innodb_use_native_aio=1 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--innodb_stats_persistent=off \
|
--mysqld=--innodb_lock_schedule_algorithm=fcfs \
|
--mysqld=--loose-idle_write_transaction_timeout=0 \
|
--mysqld=--loose-idle_transaction_timeout=0 \
|
--mysqld=--loose-idle_readonly_transaction_timeout=0 \
|
--mysqld=--connect_timeout=60 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--interactive_timeout=28800 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--slave_net_timeout=60 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--net_read_timeout=30 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--net_write_timeout=60 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--loose-table_lock_wait_timeout=50 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--wait_timeout=28800 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--lock-wait-timeout=86400 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--innodb-lock-wait-timeout=50 \
|
# 2020-03-30T13:29:19 [91427] # --no-mask \
|
# 2020-03-30T13:29:19 [91427] # --queries=10000000 \
|
# 2020-03-30T13:29:19 [91427] # --duration=300 \
|
# 2020-03-30T13:29:19 [91427] # --seed=random \
|
# 2020-03-30T13:29:19 [91427] # --reporters=Backtrace \
|
# 2020-03-30T13:29:19 [91427] # --reporters=ErrorLog \
|
# 2020-03-30T13:29:19 [91427] # --reporters=Deadlock1 \
|
# 2020-03-30T13:29:19 [91427] # --validators=None \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--log_output=none \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--log-bin \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--log_bin_trust_function_creators=1 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--loose-max-statement-time=30 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--loose-debug_assert_on_not_freed_memory=0 \
|
# 2020-03-30T13:29:19 [91427] # --engine=InnoDB \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--innodb-buffer-pool-size=32M \
|
# 2020-03-30T13:29:19 [91427] # --threads=2 \
|
# 2020-03-30T13:29:19 [91427] # --mysqld=--innodb_page_size=16K \
|
# 2020-03-30T13:29:19 [91427] # --no_mask \
|
# 2020-03-30T13:29:19 [91427] # --workdir=/home/mleich/RQG_mleich/storage/1585573778/106 \
|
# 2020-03-30T13:29:19 [91427] # --vardir=/dev/shm/vardir/1585573778/106 \
|
# 2020-03-30T13:29:19 [91427] # --mtr-build-thread=835 \
|
# 2020-03-30T13:29:19 [91427] # --basedir1=/home/mleich/10.5-enterprise-rebase/bld_asan \
|
# 2020-03-30T13:29:19 [91427] # --basedir2=/home/mleich/10.5-enterprise-rebase/bld_asan \
|
# 2020-03-30T13:29:19 [91427] # --script_debug=_nix_
|
|
Pattern for error tagging in RQG
|
[ 'MDEV-22097' , 'Starting InnoDB instance for recovery.{1,200}mariabackup:.{1,2000}\[ERROR\] InnoDB: Not applying DELETE_ROW_FORMAT_REDUNDANT due to corruption on' ],
|
Workflow of the test
1. Create DB server and start it
2. One session starts to run some SQL stream (DML and DDL) against this server
3. Concurrent to the ongoing 2.
extra/mariabackup/mariabackup --host=127.0.0.1 --user=root --password='' --innodb-use-native-aio=0 ... --backup --datadir=<vardir of RQG runner>/1/data --target-dir=<vardir of RQG runner>/1_clone/data
gets executed.
4. After that and also concurrent to 2. but not touching the server started in 1. some
extra/mariabackup/mariabackup --host=127.0.0.1 --user=root --password='' --innodb-use-native-aio=0 --port=26704 --prepare --target-dir=<vardir of RQG runner>/1_clone/data
gets executed. And that fails.
Just one example of some historic replay (messages written by mariabackup ... prepare)
2020-03-30 13:30:41 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=4711661
2020-03-30 13:30:41 0 [Note] InnoDB: Starting final batch to recover 168 pages from redo log.
2020-03-30 13:30:41 0 [ERROR] InnoDB: Not applying DELETE_ROW_FORMAT_REDUNDANT due to corruption on [page id: space=9, page number=70]
2020-03-30 13:30:41 0 [ERROR] InnoDB: Set innodb_force_recovery=1 to ignore corruption.
2020-03-30 13:30:41 0 [ERROR] InnoDB: Plugin initialization aborted at srv0start.cc[1574] with error Data structure corruption
[00] FATAL ERROR: 2020-03-30 13:30:42 mariabackup: innodb_init() returned 39 (Data structure corruption).
[ERROR] InnoDB: Not applying DELETE_ROW_FORMAT_REDUNDANT due to corruption on [page id: space=9, page number=70]
perl rqg.pl \
--grammar=conf/mariadb/table_stress_innodb_nocopy.yy \
--gendata=conf/mariadb/table_stress.zz \
--gendata_sql=conf/mariadb/table_stress.sql \
--reporters=Mariabackup \
# 2020-03-30T13:29:19 [91427] # --mysqld=--innodb_use_native_aio=1 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--innodb_stats_persistent=off \
--mysqld=--innodb_lock_schedule_algorithm=fcfs \
--mysqld=--loose-idle_write_transaction_timeout=0 \
--mysqld=--loose-idle_transaction_timeout=0 \
--mysqld=--loose-idle_readonly_transaction_timeout=0 \
--mysqld=--connect_timeout=60 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--interactive_timeout=28800 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--slave_net_timeout=60 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--net_read_timeout=30 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--net_write_timeout=60 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--loose-table_lock_wait_timeout=50 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--wait_timeout=28800 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--lock-wait-timeout=86400 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--innodb-lock-wait-timeout=50 \
# 2020-03-30T13:29:19 [91427] # --no-mask \
# 2020-03-30T13:29:19 [91427] # --queries=10000000 \
# 2020-03-30T13:29:19 [91427] # --duration=300 \
# 2020-03-30T13:29:19 [91427] # --seed=random \
# 2020-03-30T13:29:19 [91427] # --reporters=Backtrace \
# 2020-03-30T13:29:19 [91427] # --reporters=ErrorLog \
# 2020-03-30T13:29:19 [91427] # --reporters=Deadlock1 \
# 2020-03-30T13:29:19 [91427] # --validators=None \
# 2020-03-30T13:29:19 [91427] # --mysqld=--log_output=none \
# 2020-03-30T13:29:19 [91427] # --mysqld=--log-bin \
# 2020-03-30T13:29:19 [91427] # --mysqld=--log_bin_trust_function_creators=1 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--loose-max-statement-time=30 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--loose-debug_assert_on_not_freed_memory=0 \
# 2020-03-30T13:29:19 [91427] # --engine=InnoDB \
# 2020-03-30T13:29:19 [91427] # --mysqld=--innodb-buffer-pool-size=32M \
# 2020-03-30T13:29:19 [91427] # --threads=2 \
# 2020-03-30T13:29:19 [91427] # --mysqld=--innodb_page_size=16K \
# 2020-03-30T13:29:19 [91427] # --no_mask \
# 2020-03-30T13:29:19 [91427] # --workdir=/home/mleich/RQG_mleich/storage/1585573778/106 \
# 2020-03-30T13:29:19 [91427] # --vardir=/dev/shm/vardir/1585573778/106 \
# 2020-03-30T13:29:19 [91427] # --mtr-build-thread=835 \
# 2020-03-30T13:29:19 [91427] # --basedir1=/home/mleich/10.5-enterprise-rebase/bld_asan \
# 2020-03-30T13:29:19 [91427] # --basedir2=/home/mleich/10.5-enterprise-rebase/bld_asan \
# 2020-03-30T13:29:19 [91427] # --script_debug=_nix_
Pattern for error tagging in RQG
[ 'MDEV-22097' , 'Starting InnoDB instance for recovery.{1,200}mariabackup:.{1,2000}\[ERROR\] InnoDB: Not applying DELETE_ROW_FORMAT_REDUNDANT due to corruption on' ],