Commit ffd5d74c authored by Jan Lindström's avatar Jan Lindström Committed by Julius Goryavsky

MDEV-30013 : Assertion `state() == s_aborting || state() == s_must_replay'...

MDEV-30013 : Assertion `state() == s_aborting || state() == s_must_replay' failed in int wsrep::transaction::after_rollback()

This must be some kind of merge error because at ha_check_engine
we just find out used engine or default engine. There is
no need to roll-back transaction here even if engine is not
supported as it will be handled later.
Signed-off-by: default avatarJulius Goryavsky <julius.goryavsky@mariadb.com>
parent b7b8a9ee
connection node_2;
connection node_1;
INSTALL PLUGIN ARCHIVE SONAME 'ha_archive.so';
CREATE TABLE t (a CHAR(1)) ENGINE=ARCHIVE;
SHOW CREATE TABLE t;
Table Create Table
t CREATE TABLE `t` (
`a` char(1) DEFAULT NULL
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
INSERT INTO t VALUES ('A');
UNINSTALL SONAME 'ha_archive';
Warnings:
Warning 1620 Plugin is busy and will be uninstalled on shutdown
ALTER TABLE t CHANGE COLUMN a a CHAR(2);
INSERT INTO t (a) VALUES ('AB');
ERROR 42000: Unknown storage engine 'ARCHIVE'
DROP TABLE t;
--source include/galera_cluster.inc
if (!$HA_ARCHIVE_SO) {
skip Needs Archive loadable plugin;
}
INSTALL PLUGIN ARCHIVE SONAME 'ha_archive.so';
CREATE TABLE t (a CHAR(1)) ENGINE=ARCHIVE;
SHOW CREATE TABLE t;
INSERT INTO t VALUES ('A');
UNINSTALL SONAME 'ha_archive';
ALTER TABLE t CHANGE COLUMN a a CHAR(2);
--error ER_UNKNOWN_STORAGE_ENGINE
INSERT INTO t (a) VALUES ('AB');
DROP TABLE t;
......@@ -299,9 +299,6 @@ handlerton *ha_checktype(THD *thd, handlerton *hton, bool no_substitute)
if (no_substitute)
return NULL;
#ifdef WITH_WSREP
(void)wsrep_after_rollback(thd, false);
#endif /* WITH_WSREP */
return ha_default_handlerton(thd);
} /* ha_checktype */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment