mirror of
https://github.com/MariaDB/server.git
synced 2025-07-20 10:24:14 +03:00
MDEV-22949 perfschema.memory_aggregate_no_a_no_u fails sporadically in buildbot with wrong result
perfschema aggregation, like SHOW STATUS, is only statistically correct. It doesn't use atomics for performance reasons and might miss individual increments, particularly when two connections are disconnecting at the same time. To have stable results tests should avoid doing it.
This commit is contained in:
@ -274,7 +274,6 @@ execute dump_users;
|
||||
execute dump_hosts;
|
||||
|
||||
--disconnect con1
|
||||
--disconnect con5
|
||||
|
||||
--connection default
|
||||
|
||||
@ -283,6 +282,8 @@ let $wait_condition=
|
||||
select count(*) = 0 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER= 'user1';
|
||||
--source include/wait_condition.inc
|
||||
|
||||
--disconnect con5
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from performance_schema.threads
|
||||
where `TYPE`='FOREGROUND' and PROCESSLIST_USER= 'user4';
|
||||
|
@ -2507,8 +2507,8 @@ execute dump_hosts;
|
||||
HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS
|
||||
localhost 6 6
|
||||
disconnect con1;
|
||||
disconnect con5;
|
||||
connection default;
|
||||
disconnect con5;
|
||||
"================== con1/con5 disconnected =================="
|
||||
"================== Step 10 =================="
|
||||
call dump_thread();
|
||||
|
@ -1903,8 +1903,8 @@ execute dump_hosts;
|
||||
HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS
|
||||
localhost 6 6
|
||||
disconnect con1;
|
||||
disconnect con5;
|
||||
connection default;
|
||||
disconnect con5;
|
||||
"================== con1/con5 disconnected =================="
|
||||
"================== Step 10 =================="
|
||||
call dump_thread();
|
||||
|
@ -1653,8 +1653,8 @@ user4 2 2
|
||||
execute dump_hosts;
|
||||
HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS
|
||||
disconnect con1;
|
||||
disconnect con5;
|
||||
connection default;
|
||||
disconnect con5;
|
||||
"================== con1/con5 disconnected =================="
|
||||
"================== Step 10 =================="
|
||||
call dump_thread();
|
||||
|
@ -1343,8 +1343,8 @@ execute dump_hosts;
|
||||
HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS
|
||||
localhost 6 6
|
||||
disconnect con1;
|
||||
disconnect con5;
|
||||
connection default;
|
||||
disconnect con5;
|
||||
"================== con1/con5 disconnected =================="
|
||||
"================== Step 10 =================="
|
||||
call dump_thread();
|
||||
|
@ -1093,8 +1093,8 @@ USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS
|
||||
execute dump_hosts;
|
||||
HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS
|
||||
disconnect con1;
|
||||
disconnect con5;
|
||||
connection default;
|
||||
disconnect con5;
|
||||
"================== con1/con5 disconnected =================="
|
||||
"================== Step 10 =================="
|
||||
call dump_thread();
|
||||
|
@ -2257,8 +2257,8 @@ user4 2 2
|
||||
execute dump_hosts;
|
||||
HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS
|
||||
disconnect con1;
|
||||
disconnect con5;
|
||||
connection default;
|
||||
disconnect con5;
|
||||
"================== con1/con5 disconnected =================="
|
||||
"================== Step 10 =================="
|
||||
call dump_thread();
|
||||
|
@ -1947,8 +1947,8 @@ execute dump_hosts;
|
||||
HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS
|
||||
localhost 6 6
|
||||
disconnect con1;
|
||||
disconnect con5;
|
||||
connection default;
|
||||
disconnect con5;
|
||||
"================== con1/con5 disconnected =================="
|
||||
"================== Step 10 =================="
|
||||
call dump_thread();
|
||||
|
@ -1697,8 +1697,8 @@ USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS
|
||||
execute dump_hosts;
|
||||
HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS
|
||||
disconnect con1;
|
||||
disconnect con5;
|
||||
connection default;
|
||||
disconnect con5;
|
||||
"================== con1/con5 disconnected =================="
|
||||
"================== Step 10 =================="
|
||||
call dump_thread();
|
||||
|
Reference in New Issue
Block a user