mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 06:30:45 +02:00

For running the Galera tests, the variable my_disable_leak_check
was set to true in order to avoid assertions due to memory leaks
at shutdown.
Some adjustments due to MDEV-13625 (merge InnoDB tests from MySQL 5.6)
were performed. The most notable behaviour changes from 10.0 and 10.1
are the following:
* innodb.innodb-table-online: adjustments for the DROP COLUMN
behaviour change (MDEV-11114, MDEV-13613)
* innodb.innodb-index-online-fk: the removal of a (1,NULL) record
from the result; originally removed in MySQL 5.7 in the
Oracle Bug #16244691 fix
377774689b
* innodb.create-index-debug: disabled due to MDEV-13680
(the MySQL Bug #77497 fix was not merged from 5.6 to 5.7.10)
* innodb.innodb-alter-autoinc: MariaDB 10.2 behaves like MySQL 5.6/5.7,
while MariaDB 10.0 and 10.1 assign different values when
auto_increment_increment or auto_increment_offset are used.
Also MySQL 5.6/5.7 exhibit different behaviour between
LGORITHM=INPLACE and ALGORITHM=COPY, so something needs to be tested
and fixed in both MariaDB 10.0 and 10.2.
* innodb.innodb-wl5980-alter: disabled because it would trigger an
InnoDB assertion failure (MDEV-13668 may need additional effort in 10.2)
52 lines
1.6 KiB
Text
52 lines
1.6 KiB
Text
connection node_1;
|
|
connection node_2;
|
|
connection node_2;
|
|
CREATE TABLE t1(i INT) ENGINE=INNODB;
|
|
INSERT INTO t1 VALUES(1);
|
|
SELECT * FROM t1;
|
|
i
|
|
1
|
|
SET @@global.wsrep_cluster_address = '';
|
|
SET @@session.wsrep_dirty_reads=OFF;
|
|
SET SESSION wsrep_sync_wait=0;
|
|
SHOW STATUS LIKE 'wsrep_ready';
|
|
Variable_name Value
|
|
wsrep_ready OFF
|
|
SHOW STATUS LIKE 'wsrep_cluster_status';
|
|
Variable_name Value
|
|
wsrep_cluster_status non-Primary
|
|
SELECT * FROM t1;
|
|
ERROR 08S01: WSREP has not yet prepared node for application use
|
|
SELECT 1 FROM t1;
|
|
ERROR 08S01: WSREP has not yet prepared node for application use
|
|
SET @@session.wsrep_dirty_reads=ON;
|
|
SELECT * FROM t1;
|
|
i
|
|
1
|
|
SELECT 1 FROM t1;
|
|
1
|
|
1
|
|
SELECT i, variable_name, variable_value FROM t1, information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads" AND i = 1;
|
|
i variable_name variable_value
|
|
1 WSREP_DIRTY_READS ON
|
|
SET @@session.wsrep_dirty_reads=OFF;
|
|
SELECT i, variable_name, variable_value FROM t1, information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads" AND i = 1;
|
|
ERROR 08S01: WSREP has not yet prepared node for application use
|
|
SELECT 1;
|
|
1
|
|
1
|
|
USE information_schema;
|
|
ERROR 08S01: WSREP has not yet prepared node for application use
|
|
SELECT * FROM information_schema.session_variables WHERE variable_name LIKE "wsrep_dirty_reads";
|
|
ERROR 08S01: WSREP has not yet prepared node for application use
|
|
SELECT COUNT(*) >= 10 FROM performance_schema.events_statements_history;
|
|
ERROR 08S01: WSREP has not yet prepared node for application use
|
|
connection node_1;
|
|
USE test;
|
|
SELECT * FROM t1;
|
|
i
|
|
1
|
|
DROP TABLE t1;
|
|
disconnect node_2;
|
|
disconnect node_1;
|
|
# End of test
|