Skip to content

Commit fee807f

Browse files
author
Jan Lindström
committed
MDEV-22148 : Assertion `state_ == s_exec || state_ == s_quitting' failed in optimized builds | SIGABRT in wsrep::client_state::disable_streaming
Actual bug seems to be already fixed, just adding a test case.
1 parent acb0c9e commit fee807f

File tree

2 files changed

+138
-0
lines changed

2 files changed

+138
-0
lines changed
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
connection node_2;
2+
connection node_1;
3+
SET SESSION wsrep_trx_fragment_size=DEFAULT;
4+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
5+
Variable_name Value
6+
wsrep_trx_fragment_size 0
7+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
8+
Variable_name Value
9+
wsrep_trx_fragment_size 0
10+
SET SESSION wsrep_trx_fragment_size=0;
11+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
12+
Variable_name Value
13+
wsrep_trx_fragment_size 0
14+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
15+
Variable_name Value
16+
wsrep_trx_fragment_size 0
17+
SET GLOBAL wsrep_trx_fragment_size=DEFAULT;
18+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
19+
Variable_name Value
20+
wsrep_trx_fragment_size 0
21+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
22+
Variable_name Value
23+
wsrep_trx_fragment_size 0
24+
SET GLOBAL wsrep_trx_fragment_size=0;
25+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
26+
Variable_name Value
27+
wsrep_trx_fragment_size 0
28+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
29+
Variable_name Value
30+
wsrep_trx_fragment_size 0
31+
SET GLOBAL wsrep_trx_fragment_size=-1;
32+
Warnings:
33+
Warning 1292 Truncated incorrect wsrep_trx_fragment_size value: '-1'
34+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
35+
Variable_name Value
36+
wsrep_trx_fragment_size 0
37+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
38+
Variable_name Value
39+
wsrep_trx_fragment_size 0
40+
SET SESSION wsrep_trx_fragment_size=-1;
41+
Warnings:
42+
Warning 1292 Truncated incorrect wsrep_trx_fragment_size value: '-1'
43+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
44+
Variable_name Value
45+
wsrep_trx_fragment_size 0
46+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
47+
Variable_name Value
48+
wsrep_trx_fragment_size 0
49+
SET GLOBAL wsrep_trx_fragment_size=100;
50+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
51+
Variable_name Value
52+
wsrep_trx_fragment_size 0
53+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
54+
Variable_name Value
55+
wsrep_trx_fragment_size 100
56+
SET SESSION wsrep_trx_fragment_size=100;
57+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
58+
Variable_name Value
59+
wsrep_trx_fragment_size 100
60+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
61+
Variable_name Value
62+
wsrep_trx_fragment_size 100
63+
SET GLOBAL wsrep_trx_fragment_size='A';
64+
ERROR 42000: Incorrect argument type to variable 'wsrep_trx_fragment_size'
65+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
66+
Variable_name Value
67+
wsrep_trx_fragment_size 100
68+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
69+
Variable_name Value
70+
wsrep_trx_fragment_size 100
71+
SET SESSION wsrep_trx_fragment_size='A';
72+
ERROR 42000: Incorrect argument type to variable 'wsrep_trx_fragment_size'
73+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
74+
Variable_name Value
75+
wsrep_trx_fragment_size 100
76+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
77+
Variable_name Value
78+
wsrep_trx_fragment_size 100
79+
SET GLOBAL wsrep_trx_fragment_size=NULL;
80+
ERROR 42000: Incorrect argument type to variable 'wsrep_trx_fragment_size'
81+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
82+
Variable_name Value
83+
wsrep_trx_fragment_size 100
84+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
85+
Variable_name Value
86+
wsrep_trx_fragment_size 100
87+
SET SESSION wsrep_trx_fragment_size=NULL;
88+
ERROR 42000: Incorrect argument type to variable 'wsrep_trx_fragment_size'
89+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
90+
Variable_name Value
91+
wsrep_trx_fragment_size 100
92+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
93+
Variable_name Value
94+
wsrep_trx_fragment_size 100
95+
SET GLOBAL wsrep_trx_fragment_size=DEFAULT;
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
--source include/galera_cluster.inc
2+
3+
SET SESSION wsrep_trx_fragment_size=DEFAULT;
4+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
5+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
6+
SET SESSION wsrep_trx_fragment_size=0;
7+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
8+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
9+
SET GLOBAL wsrep_trx_fragment_size=DEFAULT;
10+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
11+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
12+
SET GLOBAL wsrep_trx_fragment_size=0;
13+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
14+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
15+
SET GLOBAL wsrep_trx_fragment_size=-1;
16+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
17+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
18+
SET SESSION wsrep_trx_fragment_size=-1;
19+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
20+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
21+
SET GLOBAL wsrep_trx_fragment_size=100;
22+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
23+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
24+
SET SESSION wsrep_trx_fragment_size=100;
25+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
26+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
27+
--error ER_WRONG_TYPE_FOR_VAR
28+
SET GLOBAL wsrep_trx_fragment_size='A';
29+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
30+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
31+
--error ER_WRONG_TYPE_FOR_VAR
32+
SET SESSION wsrep_trx_fragment_size='A';
33+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
34+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
35+
--error ER_WRONG_TYPE_FOR_VAR
36+
SET GLOBAL wsrep_trx_fragment_size=NULL;
37+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
38+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
39+
--error ER_WRONG_TYPE_FOR_VAR
40+
SET SESSION wsrep_trx_fragment_size=NULL;
41+
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
42+
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
43+
SET GLOBAL wsrep_trx_fragment_size=DEFAULT;

0 commit comments

Comments
 (0)