Server IP : 104.21.38.3 / Your IP : 162.158.107.17 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/engines/rr_trx/ |
Upload File : |
USE test; -- This file contains queries that can be used to check table consistency after running the stress_tx_rr test suite. -- Contains a mix of queries used throughout the actual test suite. -- When server is running, run this script e.g. like this: -- ./bin/mysql -v -u root -h 127.0.0.1 < mysql-test/suite/engines/rr_trx/check_consistency.sql CHECK TABLE t1; ANALYZE TABLE t1; -- Sum of all integers that are part of the test data should be 0 SELECT SUM(`int1` + `int1_key` + `int1_unique` + `int2` + `int2_key` + `int2_unique`) AS TotalSum FROM t1; -- No uncommitted data should be visible to a REPEATABLE-READ transaction SELECT * FROM t1 WHERE `is_uncommitted` = 1; -- No rows marked as consistent should have row-sum not equal to 0 SELECT * FROM t1 WHERE @sum:=`int1` + `int1_key` + `int1_unique` + `int2` + `int2_key` + `int2_unique` <> 0 AND `is_consistent` = 1; -- Check the table count. SHOULD NOT BE 0. SELECT COUNT(*) FROM t1; -- The count of rows with pk divisible by 5 should be constant. -- (less useful when there is no concurrency, though) SELECT COUNT(*) FROM t1 WHERE `pk` MOD 5 = 0 AND `pk` BETWEEN 1 AND 1000; -- Check statistics (any number is OK, we are only looking for an impractical amount of errors SELECT * FROM statistics;