Skip to content

Commit edbd0ce

Browse files
author
Nirbhay Choubey
committed
MDEV-9171: innodb.innodb_uninstall Test Failure
An additional warning saying "tc-log cannot be enabled" is emitted when InnoDB is installed at runtime on mysqld built with wsrep-patch (-DWITH_WSREP=ON). This happens because, installing InnoDB increments the total number of 2pc-capable engines and with wsrep-patch already enabled - the total count goes >1. Even though, this condition is sufficient to enable tc-logging, it is not permitted at runtime, and thus the warning. Updated the testcase to avoid the warning.
1 parent 9a5c75a commit edbd0ce

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

mysql-test/suite/innodb/r/innodb_uninstall.result

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
install plugin innodb soname 'ha_innodb';
2-
Warnings:
3-
Warning 1105 Cannot enable tc-log at run-time. XA features of InnoDB are disabled
42
create table t1(a int not null primary key) engine=innodb;
53
begin;
64
insert into t1 values(1);
@@ -12,8 +10,6 @@ sleep(1)
1210
Warnings:
1311
Warning 1620 Plugin is busy and will be uninstalled on shutdown
1412
install plugin innodb soname 'ha_innodb';
15-
Warnings:
16-
Warning 1105 Cannot enable tc-log at run-time. XA features of InnoDB are disabled
1713
drop table t1;
1814
create table t2(a int not null primary key) engine=innodb;
1915
insert into t2 values(1);

mysql-test/suite/innodb/t/innodb_uninstall.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ if (!$HA_INNODB_SO) {
99
# MDEV-8474: InnoDB sets per-connection data unsafely
1010
# Below test caused hang
1111
#
12+
# When mysqld is built with wsrep patch (WITH_WSREP=ON),
13+
# the following install command emits a warning about
14+
# server unable to enable tc-log at runtime.
15+
disable_warnings;
1216
install plugin innodb soname 'ha_innodb';
17+
enable_warnings;
18+
1319
create table t1(a int not null primary key) engine=innodb;
1420

1521
connect (con1, localhost, root);
@@ -36,7 +42,9 @@ reap;
3642

3743
connect (con1, localhost, root);
3844
connection con1;
45+
disable_warnings;
3946
install plugin innodb soname 'ha_innodb';
47+
enable_warnings;
4048

4149
drop table t1;
4250
create table t2(a int not null primary key) engine=innodb;

0 commit comments

Comments
 (0)