mariadb/mysql-test/suite/galera/r/galera_aria.result
Jan Lindström fd1266a980 MDEV-34761 : Assertion `client_state_.mode() == wsrep::client_state::m_local' failed in int wsrep::transaction::after_statement(wsrep::unique_lock<wsrep::mutex>&)
@@enforce_storage_engine is local setting and there is no
knowledge how other nodes are configured. Statement
CREATE TABLE xxx ENGINE=yyy is replicated as it is and
if required engine != enforced engine it could lead
inconsistent used storage engine in the cluster.

Fix is to return error and a warning if required engine is not
same as enforced engine.

Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
2025-06-30 00:57:56 +02:00

25 lines
1.3 KiB
Text

connection node_2;
connection node_1;
set session sql_mode='';
SET @@enforce_storage_engine=INNODB;
CREATE TABLE t1 (c INT ) ENGINE=ARIA;
ERROR HY000: The MariaDB server is running with the ENFORCE_STORAGE_ENGINE option so it cannot execute this statement
SHOW WARNINGS;
Level Code Message
Error 1290 The MariaDB server is running with the ENFORCE_STORAGE_ENGINE option so it cannot execute this statement
Note 1290 Do not use ENGINE=x when @@enforce_storage_engine is set
Error 1290 The MariaDB server is running with the ENFORCE_STORAGE_ENGINE option so it cannot execute this statement
Note 1290 Do not use ENGINE=x when @@enforce_storage_engine is set
CREATE TABLE t1 (c INT );
DROP TABLE t1;
CREATE TABLE t1 (c INT ) ENGINE=INNODB;
DROP TABLE t1;
SET @@enforce_storage_engine=ARIA;
CREATE TABLE t1 (c INT ) ENGINE=INNODB;
ERROR HY000: The MariaDB server is running with the ENFORCE_STORAGE_ENGINE option so it cannot execute this statement
SHOW WARNINGS;
Level Code Message
Error 1290 The MariaDB server is running with the ENFORCE_STORAGE_ENGINE option so it cannot execute this statement
Note 1290 Do not use ENGINE=x when @@enforce_storage_engine is set
Error 1290 The MariaDB server is running with the ENFORCE_STORAGE_ENGINE option so it cannot execute this statement
Note 1290 Do not use ENGINE=x when @@enforce_storage_engine is set