summaryrefslogtreecommitdiff
path: root/storage/rocksdb/mysql-test/rocksdb/t/mariadb_plugin.test
blob: 4f582af1960c087e7904b6ff7588fcdc3e4f9ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--source include/have_log_bin.inc
--source include/have_binlog_format_row.inc

--echo #
--echo # MDEV-14843: Assertion `s_tx_list.size() == 0' failed in myrocks::Rdb_transaction::term_mutex
--echo #

#
# On Linux, wsrep plugin is always loaded so XA is enabled at this point.
# On Windows, there is no wsrep, so we get this warning:
#   Warning	1105	Cannot enable tc-log at run-time. XA features of ROCKSDB are disabled
#
--disable_warnings
INSTALL SONAME 'ha_rocksdb';
--enable_warnings

CREATE TABLE t1 (i INT) ENGINE=RocksDB;
insert into t1 values (1);

connect (con1,localhost,root,,);
connection con1;
insert into test.t1 values (1);

connection default;

# Cleanup
DROP TABLE t1;
UNINSTALL SONAME 'ha_rocksdb';

--echo #
--echo # MDEV-15686: Loading MyRocks plugin back after it has been unloaded causes a crash
--echo #
call mtr.add_suppression("Plugin 'ROCKSDB.*' init function returned error.");
call mtr.add_suppression("Plugin 'ROCKSDB.*' registration as a INFORMATION SCHEMA failed.");
call mtr.add_suppression("Plugin 'ROCKSDB' registration as a STORAGE ENGINE failed");

--error ER_INTERNAL_ERROR
INSTALL SONAME 'ha_rocksdb';