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

MDEV-31173 : Server crashes when setting wsrep_cluster_address after adding...

MDEV-31173 : Server crashes when setting wsrep_cluster_address after adding invalid value to wsrep_allowlist table

Problem was that wsrep_schema tables were not marked as
category information. Fix allows access to wsrep_schema
tables even when node is detached.
Signed-off-by: default avatarJulius Goryavsky <julius.goryavsky@mariadb.com>
parent d058be62
...@@ -11,12 +11,21 @@ SET GLOBAL WSREP_ON=0; ...@@ -11,12 +11,21 @@ SET GLOBAL WSREP_ON=0;
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log; SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
EXPECT_0 EXPECT_0
0 0
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_allowlist;
EXPECT_0
0
SELECT COUNT(*) AS EXPECT_1 FROM mysql.wsrep_cluster; SELECT COUNT(*) AS EXPECT_1 FROM mysql.wsrep_cluster;
EXPECT_1 EXPECT_1
1 1
SELECT COUNT(*) AS EXPECT_2 FROM mysql.wsrep_cluster_members; SELECT COUNT(*) AS EXPECT_2 FROM mysql.wsrep_cluster_members;
EXPECT_2 EXPECT_2
2 2
INSERT INTO mysql.wsrep_allowlist (ip) VALUES (0);
SET GLOBAL wsrep_cluster_address = @wsrep_cluster_address_orig;
SELECT 1;
1
1
DELETE FROM mysql.wsrep_allowlist;
connection node_1; connection node_1;
SET GLOBAL wsrep_provider_options ='pc.ignore_sb=true'; SET GLOBAL wsrep_provider_options ='pc.ignore_sb=true';
connection node_2; connection node_2;
......
...@@ -13,9 +13,15 @@ SET @wsrep_provider_options_orig = @@GLOBAL.wsrep_provider_options; ...@@ -13,9 +13,15 @@ SET @wsrep_provider_options_orig = @@GLOBAL.wsrep_provider_options;
SET @wsrep_cluster_address_orig = @@GLOBAL.wsrep_cluster_address; SET @wsrep_cluster_address_orig = @@GLOBAL.wsrep_cluster_address;
SET GLOBAL WSREP_ON=0; SET GLOBAL WSREP_ON=0;
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log; SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_streaming_log;
SELECT COUNT(*) AS EXPECT_0 FROM mysql.wsrep_allowlist;
SELECT COUNT(*) AS EXPECT_1 FROM mysql.wsrep_cluster; SELECT COUNT(*) AS EXPECT_1 FROM mysql.wsrep_cluster;
SELECT COUNT(*) AS EXPECT_2 FROM mysql.wsrep_cluster_members; SELECT COUNT(*) AS EXPECT_2 FROM mysql.wsrep_cluster_members;
INSERT INTO mysql.wsrep_allowlist (ip) VALUES (0);
SET GLOBAL wsrep_cluster_address = @wsrep_cluster_address_orig;
SELECT 1;
DELETE FROM mysql.wsrep_allowlist;
--connection node_1 --connection node_1
SET GLOBAL wsrep_provider_options ='pc.ignore_sb=true'; SET GLOBAL wsrep_provider_options ='pc.ignore_sb=true';
......
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