Commit fee807f6 authored by Jan Lindström's avatar Jan Lindström

MDEV-22148 : Assertion `state_ == s_exec || state_ == s_quitting' failed in...

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.
parent acb0c9e8
connection node_2;
connection node_1;
SET SESSION wsrep_trx_fragment_size=DEFAULT;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SET SESSION wsrep_trx_fragment_size=0;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SET GLOBAL wsrep_trx_fragment_size=DEFAULT;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SET GLOBAL wsrep_trx_fragment_size=0;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SET GLOBAL wsrep_trx_fragment_size=-1;
Warnings:
Warning 1292 Truncated incorrect wsrep_trx_fragment_size value: '-1'
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SET SESSION wsrep_trx_fragment_size=-1;
Warnings:
Warning 1292 Truncated incorrect wsrep_trx_fragment_size value: '-1'
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SET GLOBAL wsrep_trx_fragment_size=100;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 0
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SET SESSION wsrep_trx_fragment_size=100;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SET GLOBAL wsrep_trx_fragment_size='A';
ERROR 42000: Incorrect argument type to variable 'wsrep_trx_fragment_size'
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SET SESSION wsrep_trx_fragment_size='A';
ERROR 42000: Incorrect argument type to variable 'wsrep_trx_fragment_size'
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SET GLOBAL wsrep_trx_fragment_size=NULL;
ERROR 42000: Incorrect argument type to variable 'wsrep_trx_fragment_size'
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SET SESSION wsrep_trx_fragment_size=NULL;
ERROR 42000: Incorrect argument type to variable 'wsrep_trx_fragment_size'
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
Variable_name Value
wsrep_trx_fragment_size 100
SET GLOBAL wsrep_trx_fragment_size=DEFAULT;
--source include/galera_cluster.inc
SET SESSION wsrep_trx_fragment_size=DEFAULT;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
SET SESSION wsrep_trx_fragment_size=0;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
SET GLOBAL wsrep_trx_fragment_size=DEFAULT;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
SET GLOBAL wsrep_trx_fragment_size=0;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
SET GLOBAL wsrep_trx_fragment_size=-1;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
SET SESSION wsrep_trx_fragment_size=-1;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
SET GLOBAL wsrep_trx_fragment_size=100;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
SET SESSION wsrep_trx_fragment_size=100;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL wsrep_trx_fragment_size='A';
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
--error ER_WRONG_TYPE_FOR_VAR
SET SESSION wsrep_trx_fragment_size='A';
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
--error ER_WRONG_TYPE_FOR_VAR
SET GLOBAL wsrep_trx_fragment_size=NULL;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
--error ER_WRONG_TYPE_FOR_VAR
SET SESSION wsrep_trx_fragment_size=NULL;
SHOW SESSION VARIABLES LIKE 'wsrep_trx_fragment_size';
SHOW GLOBAL VARIABLES LIKE 'wsrep_trx_fragment_size';
SET GLOBAL wsrep_trx_fragment_size=DEFAULT;
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